mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix sf4 deprecated: remove choices_as_values form option
This commit is contained in:
parent
9850bfba81
commit
f394283531
@ -122,7 +122,6 @@ class CSVFormatter implements FormatterInterface
|
|||||||
range(1, $nbAggregators),
|
range(1, $nbAggregators),
|
||||||
range(1, $nbAggregators)
|
range(1, $nbAggregators)
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => false
|
'expanded' => false
|
||||||
));
|
));
|
||||||
@ -132,7 +131,6 @@ class CSVFormatter implements FormatterInterface
|
|||||||
'row' => 'r',
|
'row' => 'r',
|
||||||
'column' => 'c'
|
'column' => 'c'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => false
|
'expanded' => false
|
||||||
));
|
));
|
||||||
|
@ -103,7 +103,6 @@ class CSVListFormatter implements FormatterInterface
|
|||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'label' => "Add a number on first column",
|
'label' => "Add a number on first column",
|
||||||
'choices_as_values' => true,
|
|
||||||
'data' => true
|
'data' => true
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,6 @@ class CSVPivotedListFormatter implements FormatterInterface
|
|||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'label' => "Add a number on first column",
|
'label' => "Add a number on first column",
|
||||||
'choices_as_values' => true,
|
|
||||||
'data' => true
|
'data' => true
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,6 @@ class SpreadSheetFormatter implements FormatterInterface
|
|||||||
'Microsoft Excel 2007-2013 XML (.xlsx) (Microsoft Excel, LibreOffice)' => 'xlsx',
|
'Microsoft Excel 2007-2013 XML (.xlsx) (Microsoft Excel, LibreOffice)' => 'xlsx',
|
||||||
'Comma separated values (.csv)' => 'csv'
|
'Comma separated values (.csv)' => 'csv'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'placeholder' => 'Choose the format'
|
'placeholder' => 'Choose the format'
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -194,7 +193,6 @@ class SpreadSheetFormatter implements FormatterInterface
|
|||||||
range(1, $nbAggregators),
|
range(1, $nbAggregators),
|
||||||
range(1, $nbAggregators)
|
range(1, $nbAggregators)
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => false
|
'expanded' => false
|
||||||
));
|
));
|
||||||
|
@ -99,7 +99,6 @@ class SpreadsheetListFormatter implements FormatterInterface
|
|||||||
'OpenDocument Format (.ods) (LibreOffice, ...)' => 'ods',
|
'OpenDocument Format (.ods) (LibreOffice, ...)' => 'ods',
|
||||||
'Microsoft Excel 2007-2013 XML (.xlsx) (Microsoft Excel, LibreOffice)' => 'xlsx'
|
'Microsoft Excel 2007-2013 XML (.xlsx) (Microsoft Excel, LibreOffice)' => 'xlsx'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'placeholder' => 'Choose the format'
|
'placeholder' => 'Choose the format'
|
||||||
))
|
))
|
||||||
->add('numerotation', ChoiceType::class, array(
|
->add('numerotation', ChoiceType::class, array(
|
||||||
@ -110,7 +109,6 @@ class SpreadsheetListFormatter implements FormatterInterface
|
|||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'label' => "Add a number on first column",
|
'label' => "Add a number on first column",
|
||||||
'choices_as_values' => true,
|
|
||||||
'data' => true
|
'data' => true
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,6 @@ trait AppendScopeChoiceTypeTrait
|
|||||||
$builder
|
$builder
|
||||||
->create($name, ChoiceType::class, array(
|
->create($name, ChoiceType::class, array(
|
||||||
'choices' => array_combine(array_values($choices),array_keys($choices)),
|
'choices' => array_combine(array_values($choices),array_keys($choices)),
|
||||||
'choices_as_values' => true,
|
|
||||||
'auto_initialize' => false
|
'auto_initialize' => false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -91,7 +91,6 @@ class ComposedRoleScopeType extends AbstractType
|
|||||||
$builder
|
$builder
|
||||||
->add('role', ChoiceType::class, array(
|
->add('role', ChoiceType::class, array(
|
||||||
'choices' => array_combine(array_values($values),array_keys($values)),
|
'choices' => array_combine(array_values($values),array_keys($values)),
|
||||||
'choices_as_values' => true,
|
|
||||||
'placeholder' => 'Choose amongst roles',
|
'placeholder' => 'Choose amongst roles',
|
||||||
'choice_attr' => function($role) use ($rolesWithoutScopes) {
|
'choice_attr' => function($role) use ($rolesWithoutScopes) {
|
||||||
if (in_array($role, $rolesWithoutScopes)) {
|
if (in_array($role, $rolesWithoutScopes)) {
|
||||||
|
@ -72,7 +72,6 @@ class DateIntervalType extends AbstractType
|
|||||||
])
|
])
|
||||||
->add('unit', ChoiceType::class, [
|
->add('unit', ChoiceType::class, [
|
||||||
'choices' => $options['unit_choices'],
|
'choices' => $options['unit_choices'],
|
||||||
'choices_as_values' => true
|
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -55,7 +55,6 @@ class PickFormatterType extends AbstractType
|
|||||||
|
|
||||||
$builder->add('alias', ChoiceType::class, array(
|
$builder->add('alias', ChoiceType::class, array(
|
||||||
'choices' => $choices,
|
'choices' => $choices,
|
||||||
'choices_as_values' => true,
|
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'placeholder' => 'Choose a format'
|
'placeholder' => 'Choose a format'
|
||||||
));
|
));
|
||||||
|
@ -46,7 +46,6 @@ class Select2ChoiceType extends AbstractType
|
|||||||
$resolver->setDefaults(
|
$resolver->setDefaults(
|
||||||
array(
|
array(
|
||||||
'attr' => array('class' => 'select2 '),
|
'attr' => array('class' => 'select2 '),
|
||||||
'choices_as_values' => true
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,6 @@ class UserType extends AbstractType
|
|||||||
),
|
),
|
||||||
'expanded' => false,
|
'expanded' => false,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'choices_as_values' => true // Can be removed when upgraded to Sf3.
|
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user