]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 274236: Variable component overlaps in ThrowCodeError; patch by me...
authorjocuri%softhome.net <>
Tue, 14 Dec 2004 09:59:58 +0000 (09:59 +0000)
committerjocuri%softhome.net <>
Tue, 14 Dec 2004 09:59:58 +0000 (09:59 +0000)
editflagtypes.cgi
process_bug.cgi
template/en/default/global/code-error.html.tmpl

index 359078c102281f398edae8f0420c3c8bdc6be9ef..b172cd996a3a8acce1550d887ff7014edff92328 100755 (executable)
@@ -468,7 +468,7 @@ sub validateComponent {
     defined($component_id)
       || ThrowCodeError("flag_type_component_nonexistent", 
                         { product   => $::FORM{'product'},
-                          component => $::FORM{'component'} });
+                          name => $::FORM{'component'} });
 }
 
 sub validateSortKey {
index 0854ac8441d4efa2efe8f7a7ed7b5907f702f9bc..2c4e96dd38a5571c1d7976a0f83bda1d438783f0 100755 (executable)
@@ -709,7 +709,7 @@ if ($::FORM{'component'} ne $::FORM{'dontchange'}) {
     $comp_id = get_component_id($prod_id,
                                 $::FORM{'component'});
     $comp_id || ThrowCodeError("invalid_component", 
-                               {component => $::FORM{'component'},
+                               {name => $::FORM{'component'},
                                 product => $::FORM{'product'}});
     
     DoComma();
index 7919471357147f9b7f121b242608209eb17e9203..cbca4f1d14cca36019449445ff108e4f9fcd9717 100644 (file)
          
   [% ELSIF error == "invalid_component" %]
     [% title = "Invalid Component" %]
-    The [% component FILTER html %] component doesn't exist in the 
+    The [% name FILTER html %] component doesn't exist in the 
     [% product FILTER html %] product.
     
   [% ELSIF error == "invalid_dimensions" %]
     is invalid.
   
   [% ELSIF error == "flag_type_component_nonexistent" %]
-    The component <em>[% component FILTER html %]</em> does not exist
+    The component <em>[% name FILTER html %]</em> does not exist
     in the product <em>[% product FILTER html %]</em>.
   
   [% ELSIF error == "flag_type_component_without_product" %]