Skip to content

Commit 31a32ad

Browse files
Conditional formatting fix when set for the row without columns
1 parent a06a02a commit 31a32ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.6.8",
4+
"version": "1.6.9",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/PivotView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ PivotView.prototype.applyConditionalFormatting = function (rules, key, value, el
664664
p, i, rule, html, xs, num;
665665
actualRules = actualRules.concat(rules[key] || []);
666666
if ((xs = key.split(",")).length === 2) {
667-
actualRules = actualRules.concat(rules[xs[0] + ","] || [], rules["," + xs[1]] || []);
667+
actualRules = actualRules.concat(rules[xs[0]] || [], rules[xs[0] + ","] || [],
668+
rules["," + xs[1]] || []);
668669
}
669670

670671
for (p in actualRules) {

0 commit comments

Comments
 (0)