Ignore:
Timestamp:
09/10/09 02:09:10 (15 years ago)
Author:
nanardon
Message:
  • don't search for empty field, is this really good ??...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Ajax.pm

    r407 r451  
    6060    my $base = $c->model('Accounts')->db; 
    6161    my $val = $c->req->param('val'); 
    62     my @obj = $base->search_objects($otype, "$attr=$val"); 
     62    my @obj = $val ? $base->search_objects($otype, "$attr=$val") : (); 
    6363 
    6464    if (my $filter = $c->req->param('exclude')) { 
Note: See TracChangeset for help on using the changeset viewer.