special-casing is/is not NULL for the report editor
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 May 2007 18:05:02 +0000 (18:05 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 May 2007 18:05:02 +0000 (18:05 +0000)
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

index 5b18a3b..d9e13f4 100644 (file)
@@ -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);