mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
[CFChoice] Allow true in option 'other'
Before this commit, only the "1" value was taken into account
This commit is contained in:
parent
8bfa675bd4
commit
ff40e2991c
@ -92,7 +92,7 @@ class CustomFieldChoice implements CustomFieldInterface
|
||||
);
|
||||
|
||||
//if allow_other = true
|
||||
if ($customField->getOptions()[self::ALLOW_OTHER] === 1) {
|
||||
if ($customField->getOptions()[self::ALLOW_OTHER] == true) {
|
||||
$builder->add(
|
||||
$builder->create($customField->getSlug(), new ChoiceWithOtherType(), $options)
|
||||
->addModelTransformer(new CustomFieldDataTransformer($this, $customField)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user