fix - Style templates now process metadata properties assigned to them
This commit is contained in:
parent
0ffb28436b
commit
0ce287c212
2 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
- change: Asset::getContainer no longer changes the session asset
|
- change: Asset::getContainer no longer changes the session asset
|
||||||
- fix: Survey numeric multiple choice options
|
- fix: Survey numeric multiple choice options
|
||||||
- fix: inability to create shortcuts to threads
|
- fix: inability to create shortcuts to threads
|
||||||
|
- fix: Style templates do not render metadata
|
||||||
|
|
||||||
7.1.4
|
7.1.4
|
||||||
- Template variables in the main Survey Template were out of date in the
|
- Template variables in the main Survey Template were out of date in the
|
||||||
|
|
|
||||||
|
|
@ -200,6 +200,13 @@ if ($self->session->user->isInGroup(2) || $self->session->setting->get("preventP
|
||||||
my $output;
|
my $output;
|
||||||
if (defined $style) {
|
if (defined $style) {
|
||||||
$var{'head.tags'} .= $style->get("headBlock");
|
$var{'head.tags'} .= $style->get("headBlock");
|
||||||
|
my $meta = {};
|
||||||
|
if ($self->session->setting->get("metaDataEnabled")) {
|
||||||
|
$meta = $style->getMetaDataFields();
|
||||||
|
}
|
||||||
|
foreach my $field (keys %$meta) {
|
||||||
|
$var{$meta->{$field}{fieldName}} = $meta->{$field}{value};
|
||||||
|
}
|
||||||
$output = $style->process(\%var);
|
$output = $style->process(\%var);
|
||||||
} else {
|
} else {
|
||||||
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};
|
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue