summaryrefslogtreecommitdiffstats
path: root/customfield.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-26 08:20:01 +0200
committermkanat%bugzilla.org <>2006-07-26 08:20:01 +0200
commit9334d6db0c9982de74c9f8bcb572f945fcca4cb4 (patch)
tree9af28dd8863c23f9c23667c14a6ef699d363cf72 /customfield.pl
parentf191286713b620120a0642b7d1757a0f762a4bd6 (diff)
downloadbugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.gz
bugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.xz
Bug 339382: Make Bugzilla::Field use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'customfield.pl')
-rwxr-xr-xcustomfield.pl2
1 files changed, 1 insertions, 1 deletions
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;