Ignore:
Timestamp:
06/07/09 13:58:17 (15 years ago)
Author:
nanardon
Message:
  • cleanup filter code
Location:
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller
Files:
4 edited

Legend:

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

    r227 r240  
    2424sub index : Private { 
    2525    my ( $self, $c ) = @_; 
    26     my $base = $c->model('Accounts')->db; 
    27     $c->stash->{filter}->{otype} = 'group'; 
    28     $c->forward('filter'); 
     26 
     27    $c->stash->{ofilter} = $c->model('AttrFilter', 'site'); 
    2928    $c->stash->{groupslist} = [  map { $_->id } @{ $c->stash->{objectslist} } ]; 
    3029 
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/MassEdit.pm

    r236 r240  
    2929    if ($c->req->param('otype') && $c->req->param('otype') ne $c->session->{filter}{otype}) { 
    3030        $c->session->{filter} = undef; 
    31         $c->stash->{filter}->{otype} = $c->req->param('otype'); 
     31        $c->stash->{filter}{otype} = $c->req->param('otype'); 
    3232        $c->session->{massedit}{attrcol} = undef; 
    3333    } else { 
     
    3939        } 
    4040    } 
     41    $c->stash->{ofilter} = $c->model('AttrFilter', 'site'); 
    4142 
    4243    if (($c->req->param('_change') || '') eq 'all') { 
     
    6364        $base->commit; 
    6465    } 
    65     $c->forward('filter'); 
    6666    $c->session->{filter} = $c->stash->{filter}; 
    6767} 
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Sites.pm

    r239 r240  
    2525    my ( $self, $c ) = @_; 
    2626 
    27     my $base = $c->model('Accounts')->db; 
    28     $c->stash->{filter}->{otype} = 'site'; 
    29     $c->forward('filter'); 
     27    $c->stash->{ofilter} = $c->model('AttrFilter', 'site'); 
    3028    $c->stash->{siteslist} = [  map { $_->id } @{ $c->stash->{objectslist} } ]; 
    3129} 
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm

    r226 r240  
    2525    my ( $self, $c ) = @_; 
    2626 
    27     my $base = $c->model('Accounts')->db; 
    28     $c->stash->{filter}->{otype} = 'user'; 
    29     $c->forward('filter'); 
     27    $c->stash->{ofilter} = $c->model('AttrFilter', 'user'); 
    3028    $c->stash->{userslist} = [  map { $_->id } @{ $c->stash->{objectslist} } ]; 
    3129} 
Note: See TracChangeset for help on using the changeset viewer.