Changeset 692

Show
Ignore:
Timestamp:
05/26/07 04:23:21 (6 years ago)
Author:
paul
Message:

Don't add duplicates for category and country.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • reconcilers/reconciler_mk2

    r689 r692  
    15521552                                                        next; 
    15531553                                                } 
     1554                                        } 
     1555 
     1556                                        if (($field eq 'category') || ($field eq 'country')) { 
     1557                                                # don't add duplicates 
     1558                                                my $found; 
     1559                                                foreach my $num (0 .. ($num_added-1)) { 
     1560                                                        if (($newprog->{$field}->[$num]->[0] eq $val) and 
     1561                                                                        ((not $newprog->{$field}->[$num]->[1] and ($lang eq "BLANK")) or 
     1562                                                                         ($newprog->{$field}->[$num]->[1] eq $lang))) { 
     1563                                                                $found = 1; 
     1564                                                                last; 
     1565                                                        } 
     1566                                                } 
     1567                                                next if ($found); 
    15541568                                        } 
    15551569