- fix [ 1178367 ] Edit Shortcut doesn't work with wobjects without templateId
This commit is contained in:
parent
f7a1f3df7b
commit
027a6127f8
1 changed files with 4 additions and 1 deletions
|
|
@ -88,7 +88,10 @@ sub definition {
|
|||
sub getEditForm {
|
||||
my $self = shift;
|
||||
my $tabform = $self->SUPER::getEditForm();
|
||||
my $originalTemplate = WebGUI::Asset::Template->new($self->getShortcut->get("templateId"));
|
||||
my $originalTemplate;
|
||||
$originalTemplate = WebGUI::Asset::Template->new($self->getShortcut->get("collaborationTemplateId")) if (ref $self->getShortcut eq "WebGUI::Asset::Wobject::Collaboration");
|
||||
#Shortcuts of Posts and Threads and other assets without a "templateId"
|
||||
# are going to be ->view'ed by their original parent's settings anyway.
|
||||
$tabform->getTab("properties")->HTMLArea(
|
||||
-value=>$self->getValue("description"),
|
||||
-label=>WebGUI::International::get(85, 'Asset_Shortcut'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue