]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 212017: Should be able to change a bug if it has a flag requested that...
authorjocuri%softhome.net <>
Wed, 3 Nov 2004 06:59:23 +0000 (06:59 +0000)
committerjocuri%softhome.net <>
Wed, 3 Nov 2004 06:59:23 +0000 (06:59 +0000)
Bugzilla/Flag.pm
template/en/default/flag/list.html.tmpl

index 7254be1175cf7b94c2feeca62cc218fa4b2566e8..a246394ba5c1a94964c9ad7c2bb621a5bf0c08b7 100644 (file)
@@ -166,7 +166,9 @@ sub validate {
                             { id => $id, status => $status });
                 
         # Make sure the user didn't request the flag unless it's requestable.
-        if ($status eq '?' && !$flag->{type}->{is_requestable}) {
+        # If the flag was requested before it became unrequestable, leave it as is.
+        if ($status eq '?' && $flag->{status} ne '?' && 
+            !$flag->{type}->{is_requestable}) {
             ThrowCodeError("flag_status_invalid", 
                            { id => $id, status => $status });
         }
index 1b99bfb6d57f6f02e3e6071706416274312a6b38..cb7ff0d4873a13ff293d4f617e59bd5c76433434 100644 (file)
             [% IF type.is_active %]
               <option value="+" [% "selected" IF flag.status == "+" %]>+</option>
               <option value="-" [% "selected" IF flag.status == "-" %]>-</option>
-              [% IF type.is_requestable %]
+              [% IF type.is_requestable || flag.status == "?" %]
                 <option value="?" [% "selected" IF flag.status == "?" %]>?</option>
               [% END %]
             [% ELSE %]