diff options
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 3e74b9afd..5837d8457 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -94,6 +94,11 @@ sub create { my $version = delete $params->{version}; my $create_series = delete $params->{create_series}; + # Some fields can be NULLs + foreach my $field (qw( default_op_sys_id default_platform_id )) { + $params->{$field} = undef if $params->{$field} eq ''; + } + my $product = $class->insert_create_data($params); Bugzilla->user->clear_product_cache(); |