diff options
Diffstat (limited to 'Bugzilla/Milestone.pm')
-rw-r--r-- | Bugzilla/Milestone.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Bugzilla/Milestone.pm b/Bugzilla/Milestone.pm index fafd14ad0..cb7d53da3 100644 --- a/Bugzilla/Milestone.pm +++ b/Bugzilla/Milestone.pm @@ -45,10 +45,9 @@ use constant DB_COLUMNS => qw( sortkey ); -use constant REQUIRED_CREATE_FIELDS => qw( - value - product -); +use constant REQUIRED_FIELD_MAP => { + product_id => 'product', +}; use constant UPDATE_COLUMNS => qw( value @@ -195,6 +194,8 @@ sub _check_sortkey { sub _check_product { my ($invocant, $product) = @_; + $product || ThrowCodeError('param_required', + { function => "$invocant->create", param => "product" }); return Bugzilla->user->check_can_admin_product($product->name); } |