Bug 577014: [SINGLE|MULTIPLE]_SELECT custom fields with no new values, containing only the default value '---' and marked as mandatory, blocks the user to update/create a bug
r/a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
119de42d2b
commit
3c7b17a2a0
@ -1 +1 @@
|
||||
8260
|
||||
8261
|
||||
@ -1920,6 +1920,12 @@ sub _check_field_is_mandatory {
|
||||
|
||||
return if !$field->is_visible_on_bug($params || $invocant);
|
||||
|
||||
return if ($field->type == FIELD_TYPE_SINGLE_SELECT
|
||||
&& scalar @{ get_legal_field_values($field->name) } == 1);
|
||||
|
||||
return if ($field->type == FIELD_TYPE_MULTI_SELECT
|
||||
&& !scalar @{ get_legal_field_values($field->name) });
|
||||
|
||||
if (ref($value) eq 'ARRAY') {
|
||||
$value = join('', @$value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user