Bug 40516: Restore falsy boolean filter values
Test plan: 1) Navigate to ERM agreements and create an agreement 2) In the agreements table, click on the filter for Is Perpetual 3) Only the option for 'Yes' will be shown 4) Apply patch 5) yarn js:build 6) Hard refresh the browser and repeat step 2 7) Filter options for Yes and No should be available 8) Check the filtering works appropriately Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit5594945339) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitcf1464d290) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ddf8ae5a49
commit
023af0ce26
|
|
@ -908,7 +908,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) {
|
|||
}
|
||||
$(filters_options[i])
|
||||
.filter(function () {
|
||||
return this._id && this._str;
|
||||
return this._id !== "" && this._str !== "";
|
||||
})
|
||||
.each(function () {
|
||||
let optionValue =
|
||||
|
|
|
|||
Loading…
Reference in New Issue