diff options
author | mkanat%bugzilla.org <> | 2006-07-26 06:20:01 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-26 06:20:01 +0000 |
commit | 9334d6db0c9982de74c9f8bcb572f945fcca4cb4 (patch) | |
tree | 9af28dd8863c23f9c23667c14a6ef699d363cf72 /customfield.pl | |
parent | f191286713b620120a0642b7d1757a0f762a4bd6 (diff) | |
download | bugs-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar bugs-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.gz bugs-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.bz2 bugs-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.xz bugs-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.zip |
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-x | customfield.pl | 2 |
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; |