changeset 583:f916b88926f5

0.6dev: If configuration display label is deleted, no name would show and the build UI would fold across a couple of lines. This should see to it that the configuration always has a name available.
author osimons
date Mon, 13 Jul 2009 23:28:41 +0000
parents 7f181708d048
children d8eb5f723371
files bitten/web_ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/web_ui.py
+++ b/bitten/web_ui.py
@@ -481,7 +481,7 @@
                 'build': {}}
         config = BuildConfig.fetch(self.env, build.config, db=db)
         data['build']['config'] = {
-            'name': config.label,
+            'name': config.label or config.name,
             'href': req.href.build(config.name)
         }
 
Copyright (C) 2012-2017 Edgewall Software