mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
move queries in repository
This commit is contained in:
@@ -111,12 +111,18 @@ class EventType extends AbstractType
|
||||
},
|
||||
))
|
||||
->add('type', PickEventTypeType::class, array(
|
||||
'placeholder' => ''
|
||||
'placeholder' => 'Pick a type of event',
|
||||
'attr' => array(
|
||||
'class' => ''
|
||||
)
|
||||
))
|
||||
->add('moderator', UserPickerType::class, array(
|
||||
'center' => $options['center'],
|
||||
'role' => $options['role'],
|
||||
'placeholder' => '',
|
||||
'placeholder' => 'Pick a moderator',
|
||||
'attr' => array(
|
||||
'class' => ''
|
||||
),
|
||||
'required' => false
|
||||
))
|
||||
;
|
||||
|
@@ -166,7 +166,7 @@ class PickEventType extends AbstractType
|
||||
*/
|
||||
protected function filterCenters(Options $options)
|
||||
{
|
||||
|
||||
// option role
|
||||
if ($options['role'] === NULL) {
|
||||
$centers = array_map(
|
||||
function (GroupCenter $g) {
|
||||
@@ -181,6 +181,7 @@ class PickEventType extends AbstractType
|
||||
);
|
||||
}
|
||||
|
||||
// option center
|
||||
if ($options['centers'] === NULL)
|
||||
{
|
||||
// we select all selected centers
|
||||
|
Reference in New Issue
Block a user