Fixed a bug in the Layout where it didnot inherit the layout template of its parent
This commit is contained in:
parent
c7a4c73e6b
commit
d22e96216e
2 changed files with 10 additions and 1 deletions
|
|
@ -6,6 +6,8 @@
|
|||
- fix: Add event does not work WebGUI 7.0.5 in combination with Proxy Caching
|
||||
turned off (Wouter van Oijen / ProcoliX)
|
||||
- When going to an image by it's webgui url in admin mode, you are now shown the image instead of being taken to the edit screen for the image.
|
||||
- fixed a bug in the Layout Asset where the asset would not inherit the
|
||||
Layout template of its parent on addition (Martin Kamerbeek / Procolix)
|
||||
|
||||
7.0.6
|
||||
- fix: Error in DateTime.pm
|
||||
|
|
|
|||
|
|
@ -97,8 +97,15 @@ sub getEditForm {
|
|||
my $self = shift;
|
||||
my $tabform = $self->SUPER::getEditForm();
|
||||
my $i18n = WebGUI::International->new($self->session,"Asset_Layout");
|
||||
|
||||
my ($templateId);
|
||||
if (($self->get("assetId") eq "new") && ($self->getParent->get('className') eq 'WebGUI::Asset::Wobject::Layout')) {
|
||||
$templateId = $self->getParent->getValue('templateId');
|
||||
} else {
|
||||
$templateId = $self->getValue('templateId');
|
||||
}
|
||||
$tabform->getTab("display")->template(
|
||||
-value=>$self->getValue('templateId'),
|
||||
-value=>$templateId,
|
||||
-label=>$i18n->get('layout template title'),
|
||||
-hoverHelp=>$i18n->get('template description'),
|
||||
-namespace=>"Layout"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue