- fix: Tinymce insertImage
- fix: Edit Style returns wrong page - fix: Can not make Shortcut for CollaborationSystem
This commit is contained in:
parent
f5b1e1bd6c
commit
6f96677a5e
3 changed files with 7 additions and 4 deletions
|
|
@ -213,8 +213,7 @@ sub www_createShortcut {
|
|||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless ($self->session->user->isInGroup(4));
|
||||
my $isOnDashboard = ref $self->getParent eq 'WebGUI::Asset::Wobject::Dashboard';
|
||||
my $target = $isOnDashboard ? $self->getParent : $self;
|
||||
my $child = $target->addChild({
|
||||
my $child = $self->getParent->addChild({
|
||||
className=>'WebGUI::Asset::Shortcut',
|
||||
shortcutToAssetId=>$self->getId,
|
||||
title=>$self->getTitle,
|
||||
|
|
@ -228,7 +227,7 @@ sub www_createShortcut {
|
|||
templateId=>'PBtmpl0000000000000140'
|
||||
});
|
||||
if ($isOnDashboard) {
|
||||
return $target->www_view;
|
||||
return $self->getParent->www_view;
|
||||
} else {
|
||||
$child->cut;
|
||||
return $self->getContainer->www_manageAssets if ($self->session->form->process("proceed") eq "manageAssets");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue