Skip to content

Commit b6160dc

Browse files
committed
Fix #928 error when getting rules with "allow_invalid" flag
1 parent 7e8527d commit b6160dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ QueryBuilder.prototype.getRules = function(options) {
272272
};
273273

274274
if (rule.filter && rule.filter.data || rule.data) {
275-
ruleData.data = $.extendext(true, 'replace', {}, rule.filter.data, rule.data);
275+
ruleData.data = $.extendext(true, 'replace', {}, rule.filter ? rule.filter.data : {}, rule.data);
276276
}
277277

278278
if (options.get_flags) {

0 commit comments

Comments
 (0)