fixing the ->param ->body distinction issue.
This commit is contained in:
parent
b045ac2d61
commit
f64ec77d8a
34 changed files with 41 additions and 38 deletions
|
|
@ -160,7 +160,7 @@ Moves list of assets to trash, returns www_manageAssets() method of self if canE
|
|||
sub www_deleteList {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||
foreach my $assetId ($self->session->request->param("assetId")) {
|
||||
foreach my $assetId ($self->session->form->param("assetId")) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$assetId);
|
||||
if ($asset->canEdit) {
|
||||
$asset->trash;
|
||||
|
|
@ -245,7 +245,7 @@ Restores a piece of content from the trash back to it's original location.
|
|||
sub www_restoreList {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||
foreach my $id ($self->session->request->param("assetId")) {
|
||||
foreach my $id ($self->session->form->param("assetId")) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$id);
|
||||
$asset->publish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue