Currently the "having" clause does not record template-level filter
values in the template, but forces use of a report-level parameter.
This commit allows "having" to receive a value in the same way that
"where" does.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Angela Kilsdonk <akilsdonk@equinoxinitiative.org>
Signed-off-by: Jason Boyer <JBoyer@EquinoxInitiative.org>
return !!i.transform.aggregate;
}).map(function (i) {
var cond = {};
- cond[i.operator.op] = '::P' + param_counter++;
+ if (i.value === undefined) {
+ cond[i.operator.op] = '::P' + param_counter++;
+ }else {
+ cond[i.operator.op] = i.value;
+ }
return {
alias : i.label,
path : i.path[i.path.length - 1].classname + '-' + i.name,