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