]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1350096 - Once you've set a single Thunderbird tracking flag, the "Firefox Tracki...
authorDylan William Hardison <dylan@hardison.net>
Mon, 27 Mar 2017 13:47:45 +0000 (09:47 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 27 Mar 2017 13:47:45 +0000 (09:47 -0400)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl

index a5508a83c450a2a05cb3b91728b93e51a10becbe..5ece7880561777cab17114e93d97d547cdb21274 100644 (file)
@@ -96,6 +96,7 @@
   # build firefox flags subtitle
   firefox_flags = [];
   firefox_fixed_versions = [];
+  scores = {firefox => 0, thunderbird => 0, seamonkey => 0};
   tracking_flags_title = "Firefox Tracking Flags";
   # project flags
   FOREACH row IN tracking_flags_table;
     END;
     firefox_flags.push(blurb);
     IF row.name.search("^thunderbird");
-      tracking_flags_title = "Thunderbird Tracking Flags";
+      scores.thunderbird = scores.thunderbird + 1;
     ELSIF row.name.search("^seamonkey");
-      tracking_flags_title = "SeaMonkey Tracking Flags";
+      scores.seamonkey = scores.seamonkey + 1;
+    ELSE;
+      scores.firefox = scores.firefox + 1;
     END;
   END;
+  IF scores.thunderbird AND NOT scores.firefox;
+    tracking_flags_title = "Thunderbird Tracking Flags";
+  ELSIF scores.seamonkey AND NOT scores.firefox;
+    tracking_flags_title = "SeaMonkey Tracking Flags";
+  END;
   firefox_fixed_version = firefox_fixed_versions.join(", ");
   IF firefox_flags.size;
     firefox_flags_subtitle = firefox_flags.join(", ");