diff options
Diffstat (limited to 'customfield.pl')
-rwxr-xr-x | customfield.pl | 3 |
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"; |