From 027a6127f893140d09cc2bbc438fa543fe5b6b87 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Thu, 12 May 2005 20:55:28 +0000 Subject: [PATCH] - fix [ 1178367 ] Edit Shortcut doesn't work with wobjects without templateId --- lib/WebGUI/Asset/Shortcut.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Shortcut.pm b/lib/WebGUI/Asset/Shortcut.pm index eba4b69bc..cf16fe6d1 100644 --- a/lib/WebGUI/Asset/Shortcut.pm +++ b/lib/WebGUI/Asset/Shortcut.pm @@ -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'),