Changeset 164


Ignore:
Timestamp:
05/23/09 06:39:16 (15 years ago)
Author:
nanardon
Message:
  • allow search over magic '*'
File:
1 edited

Legend:

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

    r137 r164  
    255255            $base->get_field_name($class->type, $field, 'r') or next; 
    256256            my $fval = $obj->get_c_field($field) || ''; 
    257             if ($fval !~ m/\Q$value\E/i) { 
     257            if ($value eq '*') { 
     258                if ($fval eq '') { 
     259                    $match = 0; 
     260                    last; 
     261                } 
     262            } elsif ($fval !~ m/\Q$value\E/i) { 
    258263                $match = 0; 
    259264                last; 
Note: See TracChangeset for help on using the changeset viewer.