fixed article template override
This commit is contained in:
parent
26b88efc99
commit
ae41eadbe9
2 changed files with 4 additions and 3 deletions
|
|
@ -25,6 +25,7 @@
|
||||||
submissions.
|
submissions.
|
||||||
- Added some missing international entries that caused problems accessing
|
- Added some missing international entries that caused problems accessing
|
||||||
some of the online help.
|
some of the online help.
|
||||||
|
- Fixed a bug with Article override template.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ sub www_view {
|
||||||
if ($_[0]->get("convertCarriageReturns")) {
|
if ($_[0]->get("convertCarriageReturns")) {
|
||||||
$var{description} =~ s/\n/\<br\>\n/g;
|
$var{description} =~ s/\n/\<br\>\n/g;
|
||||||
}
|
}
|
||||||
$var{"new.template"} = WebGUI::URL::page("wid=".$_[0]->get("wobjectId")."&func=view")."&templateId=";
|
$var{"new.template"} = WebGUI::URL::page("wid=".$_[0]->get("wobjectId")."&func=view")."&overrideTemplateId=";
|
||||||
$var{"description.full"} = $var{description};
|
$var{"description.full"} = $var{description};
|
||||||
$var{"description.full"} =~ s/\^\-\;//g;
|
$var{"description.full"} =~ s/\^\-\;//g;
|
||||||
$var{"description.first.100words"} = $var{"description.full"};
|
$var{"description.first.100words"} = $var{"description.full"};
|
||||||
|
|
@ -183,8 +183,8 @@ sub www_view {
|
||||||
$var{"post.label"} = WebGUI::International::get(24,$_[0]->get("namespace"));
|
$var{"post.label"} = WebGUI::International::get(24,$_[0]->get("namespace"));
|
||||||
}
|
}
|
||||||
my $templateId = $_[0]->getValue("templateId");
|
my $templateId = $_[0]->getValue("templateId");
|
||||||
if ($session{form}{func} eq "editSave") {
|
if ($session{form}{overrideTemplateId} ne "") {
|
||||||
$templateId = $_[0]->get("templateId");
|
$templateId = $session{form}{overrideTemplateId};
|
||||||
}
|
}
|
||||||
if ($session{form}{forumOp}) {
|
if ($session{form}{forumOp}) {
|
||||||
unless ($!= $_[0]->get("wobjectId")) {
|
unless ($!= $_[0]->get("wobjectId")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue