allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/3] git commit: [#5224] don't show ticket help messages if they are only whitespace
Date Mon, 05 Nov 2012 19:13:16 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/e8fad3cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e8fad3cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e8fad3cd

Branch: refs/heads/db/4888b
Commit: e8fad3cdcf9d7e52ca9b6b64e137eef55689dbaa
Parents: 98db02b
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Thu Nov 1 21:18:14 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Thu Nov 1 21:18:14 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/e8fad3cd/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 6f5fa06..8dac04d 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -536,7 +536,7 @@ class RootController(BaseController):
     def new(self, description=None, summary=None, labels=None, **kw):
         require_access(c.app, 'create')
         c.ticket_form = W.ticket_form
-        help_msg = c.app.config.options.get('TicketHelpNew')
+        help_msg = c.app.config.options.get('TicketHelpNew','').strip()
         return dict(action=c.app.config.url()+'save_ticket',
                     help_msg=help_msg,
                     description=description, summary=summary, labels=labels)
@@ -1472,7 +1472,7 @@ class MilestoneController(BaseController):
         result['columns'] = columns or mongo_columns()
         result['sortable_custom_fields'] = c.app.globals.sortable_custom_fields_shown_in_search()
         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()
         progress = c.app.globals.milestone_count(self.progress_key)
         result.pop('q')
         result.update(


Mime
View raw message