fixed [ 1327237 ] 6.7.5 Shortcuts
This commit is contained in:
parent
db63b9a6ab
commit
53a6b83c13
2 changed files with 20 additions and 17 deletions
|
|
@ -34,6 +34,7 @@
|
|||
was missing data causing a fatal error.
|
||||
- fix [ 1326687 ] Export on windows Apache server doesn't work (with quick
|
||||
fix (Thanks to Sven Opitz)
|
||||
- fix [ 1327237 ] 6.7.5 Shortcuts
|
||||
|
||||
|
||||
6.7.6
|
||||
|
|
|
|||
|
|
@ -91,10 +91,6 @@ 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.
|
||||
$tabform->getTab("properties")->HTMLArea(
|
||||
-value=>$self->getValue("description"),
|
||||
-label=>WebGUI::International::get(85, 'Asset_Shortcut'),
|
||||
|
|
@ -107,13 +103,25 @@ sub getEditForm {
|
|||
-hoverHelp=>WebGUI::International::get('shortcut template title description', 'Asset_Shortcut'),
|
||||
-namespace=>"Shortcut"
|
||||
);
|
||||
$tabform->getTab("display")->template(
|
||||
-name=>"overrideTemplateId",
|
||||
-value=>$self->getValue("overrideTemplateId") || $originalTemplate->getId,
|
||||
-label=>WebGUI::International::get('override asset template', 'Asset_Shortcut'),
|
||||
-hoverHelp=>WebGUI::International::get('override asset template description', 'Asset_Shortcut'),
|
||||
-namespace=>$originalTemplate->get("namespace")
|
||||
);
|
||||
if ($self->getShortcut->get("templateId")) {
|
||||
$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.
|
||||
$tabform->getTab("display")->template(
|
||||
-name=>"overrideTemplateId",
|
||||
-value=>$self->getValue("overrideTemplateId") || $originalTemplate->getId,
|
||||
-label=>WebGUI::International::get('override asset template', 'Asset_Shortcut'),
|
||||
-hoverHelp=>WebGUI::International::get('override asset template description', 'Asset_Shortcut'),
|
||||
-namespace=>$originalTemplate->get("namespace")
|
||||
);
|
||||
$tabform->getTab("display")->yesNo(
|
||||
-name=>"overrideTemplate",
|
||||
-value=>$self->getValue("overrideTemplate"),
|
||||
-label=>WebGUI::International::get(10,"Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get('10 description',"Asset_Shortcut")
|
||||
);
|
||||
}
|
||||
$tabform->getTab("properties")->yesNo(
|
||||
-name=>"overrideTitle",
|
||||
-value=>$self->getValue("overrideTitle"),
|
||||
|
|
@ -132,12 +140,6 @@ sub getEditForm {
|
|||
-label=>WebGUI::International::get(9,"Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get('9 description',"Asset_Shortcut")
|
||||
);
|
||||
$tabform->getTab("display")->yesNo(
|
||||
-name=>"overrideTemplate",
|
||||
-value=>$self->getValue("overrideTemplate"),
|
||||
-label=>WebGUI::International::get(10,"Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get('10 description',"Asset_Shortcut")
|
||||
);
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-label=>WebGUI::International::get(1,"Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get('1 description',"Asset_Shortcut"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue