From 1f361a676bb5df4c2bbec926c508a95e1aa24cc3 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 3 Aug 2006 06:33:42 +0000 Subject: Bug 289357: Move AddFDef from checksetup into Field.pm Patch By Max Kanat-Alexander r=bkor, a=myk --- customfield.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'customfield.pl') 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"; -- cgit v1.2.3-24-g4f1b