diff options
-rw-r--r-- | Bugzilla/Product.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 5837d8457..491658614 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -96,6 +96,7 @@ sub create { # Some fields can be NULLs foreach my $field (qw( default_op_sys_id default_platform_id )) { + next unless exists $params->{$field} && defined $params->{$field}; $params->{$field} = undef if $params->{$field} eq ''; } |