Forward porting viewing pending assets in the trash and clipboard. Also
allowing restore of pending assets in the trash.
This commit is contained in:
parent
7fcd0db05d
commit
0bfc16bf9a
3 changed files with 12 additions and 3 deletions
|
|
@ -311,12 +311,20 @@ sub checkView {
|
|||
return "chunked";
|
||||
}
|
||||
elsif ($var->isAdminOn && $self->get("state") =~ /^trash/) { # show em trash
|
||||
$http->setRedirect($self->getUrl("func=manageTrash"));
|
||||
my $queryFrag = "func=manageTrash";
|
||||
if ($self->session->form->process('revision')) {
|
||||
$queryFrag .= ";revision=".$self->session->form->process('revision');
|
||||
}
|
||||
$http->setRedirect($self->getUrl($queryFrag));
|
||||
$http->sendHeader;
|
||||
return "chunked";
|
||||
}
|
||||
elsif ($var->isAdminOn && $self->get("state") =~ /^clipboard/) { # show em clipboard
|
||||
$http->setRedirect($self->getUrl("func=manageClipboard"));
|
||||
my $queryFrag = "func=manageTrash";
|
||||
if ($self->session->form->process('revision')) {
|
||||
$queryFrag .= ";revision=".$self->session->form->process('revision');
|
||||
}
|
||||
$http->setRedirect($self->getUrl($queryFrag));
|
||||
$http->sendHeader;
|
||||
return "chunked";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue