I have a form with a grid and two filters with a combobox
The display field of the filters is type integer.
I want to filter on both filters the same time. When i fill in the first the filter works ok, but the filtercombo does not display the selected value.
The file
\administrator\components\com_apiegooien\dom\html\form\input\select\combo.php
line 189
have the code:
$selected = ($item->$listKey === $this->dataValue);
$item->$listKey is string
$this->dataValue is integer
so they do not match
Solution:
The generated code in ..../view/..../tmpl/default_filters.php:
'dataValue' => $this->filters->value,
must be changed in:
'dataValue' => strval($this->filters->value),