- fix [ 1178367 ] Edit Shortcut doesn't work with wobjects without templateId

This commit is contained in:
Matthew Wilson 2005-05-12 20:56:49 +00:00
parent 027a6127f8
commit cbe92e884f

View file

@ -89,6 +89,7 @@ sub getEditForm {
my $self = shift;
my $tabform = $self->SUPER::getEditForm();
my $originalTemplate;
$originalTemplate = WebGUI::Asset::Template->new($self->getShortcut->get("templateId"));
$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.