Changeset 1360


Ignore:
Timestamp:
06/25/15 16:52:36 (9 years ago)
Author:
nanardon
Message:

Fix checkinput test when array is passed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Attributes.pm

    r1357 r1360  
    239239 
    240240    if ($self->{checkinput}) { 
    241         if (!$self->{checkinput}->($values)) { 
    242             return; 
     241        foreach my $val (ref $values ? @{ $values } : $values) { 
     242            if (!$self->{checkinput}->($val)) { 
     243                return; 
     244            } 
    243245        } 
    244246    } 
Note: See TracChangeset for help on using the changeset viewer.