fixed bug [ 839524 ] Editing forum settings defaults all template names

This commit is contained in:
JT Smith 2003-11-16 17:48:25 +00:00
parent 79eac4f419
commit 9fdfa7f293
2 changed files with 13 additions and 6 deletions

View file

@ -21,6 +21,7 @@
- Fixed bug [ 834792 ] Karma Decay triggers SQL error - Fixed bug [ 834792 ] Karma Decay triggers SQL error
- Fixed bug [ 832284 ] Pagination broken in Messageboard with Search - Fixed bug [ 832284 ] Pagination broken in Messageboard with Search
- Fixed bug [ 838091 ] Read-Only Forum User Cannot Subscribe - Fixed bug [ 838091 ] Read-Only Forum User Cannot Subscribe
- Fixed bug [ 839524 ] Editing forum settings defaults all template names
5.5.0 5.5.0

View file

@ -810,37 +810,43 @@ sub forumProperties {
-name=>"forumTemplateId", -name=>"forumTemplateId",
-label=>WebGUI::International::get(1031), -label=>WebGUI::International::get(1031),
-namespace=>"Forum", -namespace=>"Forum",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("forumTemplateId")
); );
$f->template( $f->template(
-name=>"threadTemplateId", -name=>"threadTemplateId",
-label=>WebGUI::International::get(1032), -label=>WebGUI::International::get(1032),
-namespace=>"Forum/Thread", -namespace=>"Forum/Thread",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("threadTemplateId")
); );
$f->template( $f->template(
-name=>"postTemplateId", -name=>"postTemplateId",
-label=>WebGUI::International::get(1033), -label=>WebGUI::International::get(1033),
-namespace=>"Forum/Post", -namespace=>"Forum/Post",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("postTemplateId")
); );
$f->template( $f->template(
-name=>"searchTemplateId", -name=>"searchTemplateId",
-label=>WebGUI::International::get(1044), -label=>WebGUI::International::get(1044),
-namespace=>"Forum/Search", -namespace=>"Forum/Search",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("searchTemplateId")
); );
$f->template( $f->template(
-name=>"postFormTemplateId", -name=>"postFormTemplateId",
-label=>WebGUI::International::get(1034), -label=>WebGUI::International::get(1034),
-namespace=>"Forum/PostForm", -namespace=>"Forum/PostForm",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("postFormTemplateId")
); );
$f->template( $f->template(
-name=>"notificationTemplateId", -name=>"notificationTemplateId",
-label=>WebGUI::International::get(1035), -label=>WebGUI::International::get(1035),
-namespace=>"Forum/Notification", -namespace=>"Forum/Notification",
-uiLevel=>5 -uiLevel=>5,
-value=>$forum->get("notificationTemplateId")
); );
my ($interval, $units) = WebGUI::DateTime::secondsToInterval(($forum->get("archiveAfter") || 31536000)); my ($interval, $units) = WebGUI::DateTime::secondsToInterval(($forum->get("archiveAfter") || 31536000));
$f->interval( $f->interval(