mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
fix errors in editing custom field group
This commit is contained in:
@@ -31,6 +31,7 @@ use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
|
||||
/**
|
||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
||||
@@ -77,7 +78,7 @@ class CustomFieldText extends AbstractCustomField
|
||||
{
|
||||
$options = $customField->getOptions();
|
||||
|
||||
$type = ($options[self::MAX_LENGTH] < 256) ? 'text'
|
||||
$type = ($options[self::MAX_LENGTH] < 256) ? TextType::class
|
||||
: TextareaType::class;
|
||||
|
||||
$attrArray = array();
|
||||
|
Reference in New Issue
Block a user