Changeset 11203

Show
Ignore:
Timestamp:
08/14/08 17:51:07 (5 months ago)
Author:
/C=ES/O=Warp Networks S.L./CN=juruen@…
Message:

Check if the element exists to avoid nasty issues
with union types in the code of select type for
unique fields

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/libebox/src/templates/ajax/setter/selectSetter.mas

    r10728 r11203  
    3535 
    3636        foreach my $row (@{$rows}) { 
     37            # Check if the element exists to avoid nasty issues 
     38            # with union types 
     39            next unless ($row->elementByName($field)); 
    3740            push( @optionsAlreadyModel, 
    3841                  $row->valueByName($field) );