Forward porting viewing pending assets in the trash and clipboard. Also

allowing restore of pending assets in the trash.
This commit is contained in:
Colin Kuskie 2009-08-06 17:56:56 +00:00
parent 7fcd0db05d
commit 0bfc16bf9a
3 changed files with 12 additions and 3 deletions

View file

@ -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 "") {