LP#1785061: Split filter value on comma for "in list" and the like
authorRemington Steed <rjs7@calvin.edu>
Thu, 2 May 2019 13:15:30 +0000 (09:15 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 24 May 2019 22:44:33 +0000 (18:44 -0400)
commite2e9b972bc15db64621938d8d47e4722cf4e5161
treeada6abc3935ca19718f5c7ca6d8790b99a23d64b
parent4701869d8e4a1fd57b2ee1c1600b56a98e962e09
LP#1785061: Split filter value on comma for "in list" and the like

This commit borrows directly from the XUL reporter code (see
function __default_value_event_handler () in
Open-ILS/web/reports/xul/template-config.js). Basically, when the filter
value is saved, certain cases need special treatment, such as splitting
an "in list" value on commas. This commit includes a helper function
which does the special treatment and saves the filter value. This helper
is called both when the value itself is changed, and when the operator
is changed.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Conflicts:
Open-ILS/web/js/ui/default/staff/reporter/template/app.js

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/reporter/template/app.js