From 9334d6db0c9982de74c9f8bcb572f945fcca4cb4 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 26 Jul 2006 06:20:01 +0000 Subject: Bug 339382: Make Bugzilla::Field use Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, a=myk --- customfield.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'customfield.pl') diff --git a/customfield.pl b/customfield.pl index 2821425c7..033ac517a 100755 --- a/customfield.pl +++ b/customfield.pl @@ -75,7 +75,7 @@ $name =~ /^cf_/ or $name = "cf_" . $name; # Exit gracefully if there is already a field with the given name. -if (scalar(Bugzilla::Field::match({ name=>$name })) > 0) { +if ( new Bugzilla::Field({name => $name}) ) { print "There is already a field named $name. Please choose " . "a different name.\n"; exit; -- cgit v1.2.3-24-g4f1b