]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 194472; link to the product's component editor when displaying error...
authorjocuri%softhome.net <>
Wed, 4 Feb 2004 23:23:39 +0000 (23:23 +0000)
committerjocuri%softhome.net <>
Wed, 4 Feb 2004 23:23:39 +0000 (23:23 +0000)
enter_bug.cgi
template/en/default/global/user-error.html.tmpl

index eedd1da7f48d4c331e19411ce619599658bde661..e55ccc58cd654bf6631ceb4541d2272b2396728a 100755 (executable)
@@ -238,7 +238,7 @@ if (lsearch(\@::enterable_products, $product) == -1) {
 my $product_id = get_product_id($product);
 
 if (0 == @{$::components{$product}}) {        
-    ThrowUserError("no_components");   
+    ThrowUserError("no_components", {product => $product});   
 } 
 elsif (1 == @{$::components{$product}}) {
     # Only one component; just pick it.
index ac6af177ba8053c788ada60733d87b422f26207e..06ce6e4415a188f651d1f193031ebd615ed0f715 100644 (file)
     Sorry; there needs to be at least one component for this product in order
     to create a new [% terms.bug %].
     [% IF UserInGroup("editcomponents") %]
-      <a href="editcomponents.cgi">Create a new component</a>.
+      <a href="editcomponents.cgi?product=[% product FILTER url_quote %]">Create
+        a new component</a>.
     [% ELSE %]
        Please contact [% Param("maintainer") %], giving the name of
        the product in which you tried to create a new [% terms.bug %].