From: miker Date: Tue, 29 May 2007 18:05:02 +0000 (+0000) Subject: special-casing is/is not NULL for the report editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bb468457fedfce0437bb27eee3c3ffb5bf7be218;p=Evergreen.git special-casing is/is not NULL for the report editor git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7386 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index 5b18a3b2df..d9e13f49ac 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -915,10 +915,14 @@ function fleshTemplateField ( template, rel, tab_name, field ) { if (tab_name.match(/filter/)) { element.condition = {}; - element.condition[tab[field].op] = - tab[field].op_value.value ? - tab[field].op_value.value : - '::P' + param_count++; + if (tab[field].op == 'is' || tab[field].op == 'is not') { + element.condition[tab[field].op] = null; + } else { + element.condition[tab[field].op] = + tab[field].op_value.value ? + tab[field].op_value.value : + '::P' + param_count++; + } } template[tab_use[tab_name]].push(element);