From bb468457fedfce0437bb27eee3c3ffb5bf7be218 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 29 May 2007 18:05:02 +0000 Subject: [PATCH] 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 --- Open-ILS/web/reports/xul/template-config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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); -- 2.11.0