mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
FEATURE [user filter] implement query. Selecting multiple users doesn't work
This commit is contained in:
@@ -87,7 +87,7 @@ class FilterOrderHelper
|
||||
return $this->entityChoices;
|
||||
}
|
||||
|
||||
public function addUserPickers(string $name, ?string $label = null, array $options = []): self
|
||||
public function addUserPicker(string $name, ?string $label = null, array $options = []): self
|
||||
{
|
||||
$this->userPickers[$name] = ['label' => $label, 'options' => $options];
|
||||
|
||||
@@ -136,7 +136,8 @@ class FilterOrderHelper
|
||||
|
||||
public function getUserPickerData(string $name): array
|
||||
{
|
||||
return $this->getFormData()['userPickers'][$name];
|
||||
dump($this->getFormData()['user_pickers']);
|
||||
return $this->getFormData()['user_pickers'][$name];
|
||||
}
|
||||
|
||||
public function getCheckboxData(string $name): array
|
||||
|
@@ -88,7 +88,7 @@ class FilterOrderHelperBuilder
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function addUserPickers(string $name, ?string $label = null, ?array $options = []): self
|
||||
public function addUserPicker(string $name, ?string $label = null, ?array $options = []): self
|
||||
{
|
||||
$this->userPickers[$name] = ['label' => $label, 'options' => $options];
|
||||
|
||||
@@ -143,7 +143,7 @@ class FilterOrderHelperBuilder
|
||||
'options' => $options
|
||||
]
|
||||
) {
|
||||
$helper->addUserPickers($name, $label, $options);
|
||||
$helper->addUserPicker($name, $label, $options);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user