From fe35f655890310b3f9674bc27aa8dc1141105bdf Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 17 Feb 2015 09:44:04 +0000 Subject: Ignore empty platform fields and change default for GNOME to empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As a follow up to commit 68256107, change the default platform for GNOME Bugzilla to the empty string, and ignore empty platform fields when uploading. This makes Bugzilla use the default value, which would be ‘Other’ or ‘All’ or whatever the product has set up. --- git-bz | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git-bz b/git-bz index 39893e0..04d6140 100755 --- a/git-bz +++ b/git-bz @@ -58,7 +58,7 @@ CONFIG['bugzilla.gnome.org'] = \ """ https = true default-priority = Normal -default-platform = Other +default-platform = """ CONFIG['bugzilla.mozilla.org'] = \ @@ -391,6 +391,11 @@ def merge_default_fields_from_dict(default_fields, d): param = key[8:].replace("-", "_") if param in ['tracker', 'product', 'component']: continue + + # Ignore empty fields + if value == '' and param in ['platform']: + continue + default_fields[param] = value def get_default_fields(tracker): -- cgit