From 640fb0493cf354df374b8fda5f24bab9110eb64a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 1 May 2006 03:52:20 +0000 Subject: Bug 331008: Consistently name errors either prod_ or product_ - Patch by timeless r=LpSolit a=justdave --- editproducts.cgi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 794caf158..9123f034f 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -168,13 +168,13 @@ if ($action eq 'new') { # Check for exact case sensitive match: if ($product->name eq $product_name) { - ThrowUserError("prod_name_already_in_use", + ThrowUserError("product_name_already_in_use", {'product' => $product->name}); } # Next check for a case-insensitive match: if (lc($product->name) eq lc($product_name)) { - ThrowUserError("prod_name_diff_in_case", + ThrowUserError("product_name_diff_in_case", {'product' => $product_name, 'existing_product' => $product->name}); } @@ -779,30 +779,30 @@ if ($action eq 'update') { } unless ($product_name) { - ThrowUserError('prod_cant_delete_name', + ThrowUserError('product_cant_delete_name', {product => $product_old->name}); } unless ($description) { - ThrowUserError('prod_cant_delete_description', + ThrowUserError('product_cant_delete_description', {product => $product_old->name}); } my $stored_maxvotesperbug = $maxvotesperbug; if (!detaint_natural($maxvotesperbug)) { - ThrowUserError('prod_votes_per_bug_must_be_nonnegative', + ThrowUserError('product_votes_per_bug_must_be_nonnegative', {maxvotesperbug => $stored_maxvotesperbug}); } my $stored_votesperuser = $votesperuser; if (!detaint_natural($votesperuser)) { - ThrowUserError('prod_votes_per_user_must_be_nonnegative', + ThrowUserError('product_votes_per_user_must_be_nonnegative', {votesperuser => $stored_votesperuser}); } my $stored_votestoconfirm = $votestoconfirm; if (!detaint_natural($votestoconfirm)) { - ThrowUserError('prod_votes_to_confirm_must_be_nonnegative', + ThrowUserError('product_votes_to_confirm_must_be_nonnegative', {votestoconfirm => $stored_votestoconfirm}); } @@ -812,7 +812,7 @@ if ($action eq 'update') { new Bugzilla::Product({name => $product_name}); if (lc($product_name) ne lc($product_old->name) && $testproduct) { - ThrowUserError('prod_name_already_in_use', + ThrowUserError('product_name_already_in_use', {product => $product_name}); } @@ -822,7 +822,7 @@ if ($action eq 'update') { $defaultmilestone); unless ($milestone) { - ThrowUserError('prod_must_define_defaultmilestone', + ThrowUserError('product_must_define_defaultmilestone', {product => $product_old->name, defaultmilestone => $defaultmilestone, classification => $classification_name}); -- cgit v1.2.3-24-g4f1b