FEATURE [user filter] implement query. Selecting multiple users doesn't work

This commit is contained in:
2023-07-05 12:38:42 +02:00
parent a34b5f8588
commit 4da7040a49
8 changed files with 58 additions and 13 deletions

View File

@@ -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

View File

@@ -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);
}