Skip to content

Commit

Permalink
Update parsed filters when setting filter
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Mar 10, 2023
1 parent 4e8e239 commit 21afe3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ public String getProcessDuration(TaskDTO task) {
* @return path of the page
*/
public String changeFilter(String filter) {
filterMenu.parseFilters(filter);
setFilter(filter);
return filterList();
}
Expand Down
4 changes: 3 additions & 1 deletion Kitodo/src/main/webapp/pages/processes.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<f:viewAction action="#{ProcessForm.setActiveTabIndexFromTemplate(tabIndex)}" />
<!--@elvariable id="projecttitle" type="java.lang.String"-->
<f:viewParam name="projecttitle"/>
<o:viewAction action="#{ProcessForm.setFilter('project:' += projecttitle)}" if="#{not empty projecttitle}"/>
<o:viewAction action="#{ProcessForm.changeFilter('project:' += projecttitle)}"
if="#{not empty projecttitle}"
update="parsedFiltersForm:parsedFilters"/>
</f:metadata>

<ui:define name="contentHeader">
Expand Down
4 changes: 3 additions & 1 deletion Kitodo/src/main/webapp/pages/tasks.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<f:viewAction action="#{CurrentTaskForm.resetPaginator(keepPagination)}"/>
<!--@elvariable id="projecttitle" type="java.lang.String"-->
<f:viewParam name="projecttitle"/>
<o:viewAction action="#{CurrentTaskForm.setFilter('project:' += projecttitle)}" if="#{not empty projecttitle}"/>
<o:viewAction action="#{CurrentTaskForm.changeFilter('project:' += projecttitle)}"
if="#{not empty projecttitle}"
update="parsedFiltersForm:parsedFilters"/>
</f:metadata>

<ui:define name="contentHeader">
Expand Down

0 comments on commit 21afe3c

Please sign in to comment.