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
|
|
@ -473,7 +473,7 @@ Restores a piece of content from the trash back to it's original location.
|
|||
sub www_restoreList {
|
||||
my $self = shift;
|
||||
foreach my $id ($self->session->form->param("assetId")) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$id);
|
||||
my $asset = eval { WebGUI::Asset->newPending($self->session,$id); };
|
||||
$asset->publish if $asset->canEdit;
|
||||
}
|
||||
if ($self->session->form->process("proceed") ne "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue