summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xenter_bug.cgi2
-rw-r--r--template/en/default/global/user-error.html.tmpl3
2 files changed, 3 insertions, 2 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index eedd1da7f..e55ccc58c 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -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.
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index ac6af177b..06ce6e441 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -529,7 +529,8 @@
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 %].