Changeset 240 for LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller
- Timestamp:
- 06/07/09 13:58:17 (15 years ago)
- 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 24 24 sub index : Private { 25 25 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'); 29 28 $c->stash->{groupslist} = [ map { $_->id } @{ $c->stash->{objectslist} } ]; 30 29 -
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/MassEdit.pm
r236 r240 29 29 if ($c->req->param('otype') && $c->req->param('otype') ne $c->session->{filter}{otype}) { 30 30 $c->session->{filter} = undef; 31 $c->stash->{filter} ->{otype} = $c->req->param('otype');31 $c->stash->{filter}{otype} = $c->req->param('otype'); 32 32 $c->session->{massedit}{attrcol} = undef; 33 33 } else { … … 39 39 } 40 40 } 41 $c->stash->{ofilter} = $c->model('AttrFilter', 'site'); 41 42 42 43 if (($c->req->param('_change') || '') eq 'all') { … … 63 64 $base->commit; 64 65 } 65 $c->forward('filter');66 66 $c->session->{filter} = $c->stash->{filter}; 67 67 } -
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Sites.pm
r239 r240 25 25 my ( $self, $c ) = @_; 26 26 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'); 30 28 $c->stash->{siteslist} = [ map { $_->id } @{ $c->stash->{objectslist} } ]; 31 29 } -
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm
r226 r240 25 25 my ( $self, $c ) = @_; 26 26 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'); 30 28 $c->stash->{userslist} = [ map { $_->id } @{ $c->stash->{objectslist} } ]; 31 29 }
Note: See TracChangeset
for help on using the changeset viewer.