check mandatory events fields even if they contain enum types
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 19 May 2009 21:42:06 +0000 (21:42 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 19 May 2009 21:42:06 +0000 (21:42 +0000)
org.glite.lb.common/src/events_parse.c.T

index e80aee4..856210a 100644 (file)
@@ -398,12 +398,10 @@ for my $t (sort { $event->{order}->{$a} <=> $event->{order}->{$b} }
        for ($event->getFieldsOrdered) {
                my $f = selectField $event $_;
                next if $f->{optional};
-               if (!$f->{codes}) {
-                       my $fn = $f->{name};
-                       my $fu = uc $fn;
-                       my $ft = $f->{type};
-                       gen "\tif (". $f->isNULL("event->$tl.$fn") .") MISSING(EDG_WLL\_$tu\_$fu)\n";
-               }
+               my $fn = $f->{name};
+               my $fu = uc $fn;
+               my $ft = $f->{type};
+               gen "\tif (". $f->isNULL("event->$tl.$fn") .") MISSING(EDG_WLL\_$tu\_$fu)\n";
        }
        gen $indent.$indent."break;\n";
 }