From 9fdfa7f29362905bfd563673260c20f9e8fe4802 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 16 Nov 2003 17:48:25 +0000 Subject: [PATCH] fixed bug [ 839524 ] Editing forum settings defaults all template names --- docs/changelog/5.x.x.txt | 1 + lib/WebGUI/Forum/UI.pm | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index 4439a51fb..f169a4659 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -21,6 +21,7 @@ - Fixed bug [ 834792 ] Karma Decay triggers SQL error - Fixed bug [ 832284 ] Pagination broken in Messageboard with Search - Fixed bug [ 838091 ] Read-Only Forum User Cannot Subscribe + - Fixed bug [ 839524 ] Editing forum settings defaults all template names 5.5.0 diff --git a/lib/WebGUI/Forum/UI.pm b/lib/WebGUI/Forum/UI.pm index 044783e65..497a891ac 100644 --- a/lib/WebGUI/Forum/UI.pm +++ b/lib/WebGUI/Forum/UI.pm @@ -810,37 +810,43 @@ sub forumProperties { -name=>"forumTemplateId", -label=>WebGUI::International::get(1031), -namespace=>"Forum", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("forumTemplateId") ); $f->template( -name=>"threadTemplateId", -label=>WebGUI::International::get(1032), -namespace=>"Forum/Thread", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("threadTemplateId") ); $f->template( -name=>"postTemplateId", -label=>WebGUI::International::get(1033), -namespace=>"Forum/Post", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("postTemplateId") ); $f->template( -name=>"searchTemplateId", -label=>WebGUI::International::get(1044), -namespace=>"Forum/Search", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("searchTemplateId") ); $f->template( -name=>"postFormTemplateId", -label=>WebGUI::International::get(1034), -namespace=>"Forum/PostForm", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("postFormTemplateId") ); $f->template( -name=>"notificationTemplateId", -label=>WebGUI::International::get(1035), -namespace=>"Forum/Notification", - -uiLevel=>5 + -uiLevel=>5, + -value=>$forum->get("notificationTemplateId") ); my ($interval, $units) = WebGUI::DateTime::secondsToInterval(($forum->get("archiveAfter") || 31536000)); $f->interval(