From fde6d4aa81a56418ae5cdfd16a6b917534d66bed Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 1 Feb 2010 15:52:24 -0800 Subject: Bug 514970: Clean up duplicates.cgi and make it use Bug objects r=LpSolit, a=LpSolit --- Bugzilla/Object.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Object.pm') diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm index 92353b6a0..4ee362945 100644 --- a/Bugzilla/Object.pm +++ b/Bugzilla/Object.pm @@ -134,7 +134,8 @@ sub check { # We don't want to override the normal template "user" object if # "user" is one of the params. delete $param->{user}; - ThrowUserError('object_does_not_exist', { %$param, class => $class }); + my $error = delete $param->{_error} || 'object_does_not_exist'; + ThrowUserError($error, { %$param, class => $class }); } return $obj; } -- cgit v1.2.3-24-g4f1b