]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix regression due to bug 830330
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 17 Feb 2013 02:17:18 +0000 (03:17 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 17 Feb 2013 02:17:18 +0000 (03:17 +0100)
template/en/default/flag/list.html.tmpl

index 7a3f88fc5d1b02cd00806cf5c73098e6ea067fbf..4d7eefb486ee9f6691467ce05dee92f16f097263 100644 (file)
@@ -6,7 +6,7 @@
   # defined by the Mozilla Public License, v. 2.0.
   #%]
 
-[% IF user.id && !read_only_flags && bug.check_can_change_field('flagtypes.name', 0, 1) %]
+[% IF user.id && !read_only_flags && (!bug || bug.check_can_change_field('flagtypes.name', 0, 1)) %]
 
 [%# We list flags by looping twice over the flag types relevant for the bug.
   # In the first loop, we display existing flags and then, for active types,