summaryrefslogtreecommitdiffstats
path: root/customfield.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-03 08:33:42 +0200
committermkanat%bugzilla.org <>2006-08-03 08:33:42 +0200
commit1f361a676bb5df4c2bbec926c508a95e1aa24cc3 (patch)
tree5ef81476a3c8f8cc40dca71b179d461764b48b8c /customfield.pl
parentb06a56e99c623093a15921546f68f8bc8f7ba75e (diff)
downloadbugzilla-1f361a676bb5df4c2bbec926c508a95e1aa24cc3.tar.gz
bugzilla-1f361a676bb5df4c2bbec926c508a95e1aa24cc3.tar.xz
Bug 289357: Move AddFDef from checksetup into Field.pm
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=myk
Diffstat (limited to 'customfield.pl')
-rwxr-xr-xcustomfield.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/customfield.pl b/customfield.pl
index 033ac517a..b5b9fd07b 100755
--- a/customfield.pl
+++ b/customfield.pl
@@ -84,5 +84,6 @@ if ( new Bugzilla::Field({name => $name}) ) {
# Create the field.
print "Creating custom field $name ...\n";
-my $field = Bugzilla::Field::create($name, $desc, 1);
+Bugzilla::Field::create_or_update(
+ {name => $name, desc => $desc, custom => 1});
print "Custom field $name created.\n";