set required to false refs #301

This commit is contained in:
2014-11-13 18:14:38 +01:00
parent dcae01d860
commit 37375ec357
2 changed files with 3 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ class CustomFieldChoice implements CustomFieldInterface
$options = array(
'multiple' => $customField->getOptions()[self::MULTIPLE],
'choices' => $choices,
'required' => (count($choices) > 1) ? true : false //not required if only one
'required' => false
);
//if allow_other = true