Skip to content
Snippets Groups Projects
Verified Commit 7fe28c27 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix persistence of filter values in backend module

parent 7c39c139
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,9 @@ class BackendController extends ActionController {
/** @var BackendUserAuthentication $backendUser */
$backendUser = $GLOBALS['BE_USER'];
if ($filters === []) {
$filters = $backendUser->getModuleData('tools_beuser/index.php/web_SgJobsBackend_filters', 'ses') ?: [];
$filters = $backendUser->getModuleData('web_SgJobsBackend_filters', 'ses') ?: [];
} else {
$backendUser->pushModuleData('tools_beuser/index.php/web_SgJobsBackend_filters', $filters);
$backendUser->pushModuleData('web_SgJobsBackend_filters', $filters);
}
// create docheader + buttons
......
......@@ -14,6 +14,7 @@
optionLabelField="name"
optionValueField="city"
options="{locationOptions}"
value="{filters.locations}"
id="filter-locations" />
<small>
<f:format.raw><f:translate key="backend.filters.locations.description" /></f:format.raw>
......@@ -23,7 +24,7 @@
<div class="col-xs-6 col-6 col-sm-6">
<div class="form-group">
<label for="filter-search"><f:translate key="backend.filters.search" /></label>
<f:form.textfield class="reset-me form-control" property="search" id="filter-search" />
<f:form.textfield class="reset-me form-control" value="{filters.search}" property="search" id="filter-search" />
</div>
</div>
<div class="form-group">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment