Ignore:
Timestamp:
10/05/09 16:30:17 (15 years ago)
Author:
nanardon
Message:
  • online check existing alias using ajax
File:
1 edited

Legend:

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

    r451 r500  
    5656} 
    5757 
     58sub objexist : Local { 
     59    my ($self, $c, $otype) = @_; 
     60    my $base = $c->model('Accounts')->db; 
     61    my $val = $c->req->param('val'); 
     62    my $obj = $base->get_object($otype, $val); 
     63 
     64    $c->stash->{'exists'} = join(', ', $obj->get_attributes($c->req->param('attr') || 
     65            'displayName')) if($obj); 
     66} 
     67 
    5868sub objattrexist : Local { 
    5969    my ($self, $c, $otype, $attr) = @_; 
Note: See TracChangeset for help on using the changeset viewer.