allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [22/44] git commit: [#5224] don't show ticket help messages if they are only whitespace
Date Tue, 27 Nov 2012 13:46:06 GMT
[#5224] don't show ticket help messages if they are only whitespace


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c104a8b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c104a8b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c104a8b6

Branch: refs/heads/cj/4691
Commit: c104a8b6af1032abec74d0f88c1b1b998ac60921
Parents: 682a6f6
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Nov 7 19:28:51 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Wed Nov 7 21:36:01 2012 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c104a8b6/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 8dac04d..24a0d6b 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -391,7 +391,7 @@ class RootController(BaseController):
         result['sortable_custom_fields'] = c.app.globals.sortable_custom_fields_shown_in_search()
         result['subscribed'] = M.Mailbox.subscribed()
         result['allow_edit'] = has_access(c.app, 'update')()
-        result['help_msg'] = c.app.config.options.get('TicketHelpSearch')
+        result['help_msg'] = c.app.config.options.get('TicketHelpSearch','').strip()
         result['url_q'] = c.app.globals.not_closed_query
         result['url_sort'] = ''
         if sort:
@@ -492,7 +492,7 @@ class RootController(BaseController):
         result['sortable_custom_fields'] = c.app.globals.sortable_custom_fields_shown_in_search()
         result['allow_edit'] = has_access(c.app, 'update')()
         result['bin'] = bin
-        result['help_msg'] = c.app.config.options.get('TicketHelpSearch')
+        result['help_msg'] = c.app.config.options.get('TicketHelpSearch', '').strip()
         c.ticket_search_results = W.ticket_search_results
         return result
 


Mime
View raw message