[geeklog-hg] geeklog: Topic Selction Control will now default to All Topic Se...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jan 10 13:14:34 EST 2013


changeset 8912:c5028f2d1523
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/c5028f2d1523
user: Tom <websitemaster at cogeco.net>
date: Thu Jan 10 13:13:57 2013 -0500
description:
Topic Selction Control will now default to All Topic Selected on new items (bug #0001462)

diffstat:

 system/lib-topic.php |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 88e81fb227f7 -r c5028f2d1523 system/lib-topic.php
--- a/system/lib-topic.php	Tue Jan 08 10:33:31 2013 -0500
+++ b/system/lib-topic.php	Thu Jan 10 13:13:57 2013 -0500
@@ -651,7 +651,7 @@
 {
     global $_TABLES;
 
-    $topic_options_hide = 1;
+    $topic_options_hide = 0;
     if (isset ($_POST['topic_options_hide'])) {
         $topic_options_hide = COM_applyFilter($_POST['topic_options_hide'], true);
     }
@@ -783,7 +783,7 @@
 */
 function TOPIC_getDataTopicSelectionControl(&$topic_option, &$tids, &$inherit_tids, &$default_tid)
 {
-    $topic_options_hide = 1;
+    $topic_options_hide = 0;
     if (isset ($_POST['topic_options_hide'])) {
         $topic_options_hide = COM_applyFilter($_POST['topic_options_hide'], true);
     }
@@ -833,7 +833,12 @@
     $tids = array();
     $inherit_tids = array();
     $default_tid = '';
-    $topic_option = '';
+    // Set Default Topic Option
+    if ($show_options) {
+        $topic_option = TOPIC_ALL_OPTION; // Default to all topics so things will work similar to how topics handled before Geeklog 2.0.0
+    } else {
+        $topic_option = TOPIC_SELECTED_OPTION;
+    }
     
     // Do they have any access to topics first?
     



More information about the geeklog-cvs mailing list