multi-set reporting based on pivot of 1 grouping column
[Evergreen.git] / Open-ILS / src / reporter / templates / select_sorter.js
index 868408f..ddd57a1 100644 (file)
@@ -2,10 +2,13 @@
 
 function field_add_remove (x) {
        var field = x.name;
-       if (x.checked)
+       if (x.checked) {
                Widget.Select.addOption('output_order',field, outputs[field]);
-       else
+               Widget.Select.addOption('pivot_col',field, outputs[field]);
+       } else {
                Widget.Select.removeOption('output_order',field);
+               Widget.Select.removeOption('pivot_col',field);
+       }
        return true;
 }