From d05f088f5f60f1e8721db8e2639a1561a2465f68 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 19 Apr 2004 19:38:15 +0000 Subject: [PATCH] fixed [ 926610 ] WebGUI::Wobject::Article --- docs/changelog/5.x.x.txt | 1 + lib/WebGUI/Wobject/Article.pm | 2 +- lib/WebGUI/Wobject/EventsCalendar.pm | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index 5337faa8c..416931406 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -1,5 +1,6 @@ 5.5.7 - bugfix [ 935552 ] USS bug (w/ and w/o img mixed posts). + - bugfix [ 926610 ] WebGUI::Wobject::Article 5.5.6 diff --git a/lib/WebGUI/Wobject/Article.pm b/lib/WebGUI/Wobject/Article.pm index 2e62f04ea..f6cb74929 100644 --- a/lib/WebGUI/Wobject/Article.pm +++ b/lib/WebGUI/Wobject/Article.pm @@ -182,7 +182,7 @@ sub www_view { $var{"post.URL"} = WebGUI::Forum::UI::formatNewThreadURL($callback,$forum->get("forumId")); $var{"post.label"} = WebGUI::International::get(24,$_[0]->get("namespace")); } - my $templateId = $_[0]->get("templateId"); + my $templateId = $_[0]->getValue("templateId"); if ($session{form}{func} eq "editSave") { $templateId = $_[0]->get("templateId"); } diff --git a/lib/WebGUI/Wobject/EventsCalendar.pm b/lib/WebGUI/Wobject/EventsCalendar.pm index a8163af12..6c02472fb 100644 --- a/lib/WebGUI/Wobject/EventsCalendar.pm +++ b/lib/WebGUI/Wobject/EventsCalendar.pm @@ -514,7 +514,7 @@ sub www_view { # } # $row[$i-1] = "page"; } - $p = WebGUI::Paginator->new(WebGUI::URL::page("func=view&wid=".$_[0]->get("wobjectId")),$_[0]->get("paginateAfter"),"calPn); + $p = WebGUI::Paginator->new(WebGUI::URL::page("func=view&wid=".$_[0]->get("wobjectId")),$_[0]->get("paginateAfter"),"calPn"); $p->setDataByArrayRef(\@monthloop); $var{month_loop} = $p->getPageData; $p->appendTemplateVars(\%var);