From 10c199d7c55ef5ed6f1df09d19d9ed9950f90610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20Be=CC=81ziaud?= Date: Tue, 9 Aug 2016 18:21:09 +0200 Subject: [PATCH] Fix get attribute value for external object with new syntax --- src/Rules.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Rules.js b/src/Rules.js index 3a7743f..9dfa5c4 100755 --- a/src/Rules.js +++ b/src/Rules.js @@ -2544,8 +2544,12 @@ enioka.rules = ( return this.object.getAttributeValue(attribute); } else { - info_debug('This object is not accessible by the rule engine ' , this.object); - return null; + if (this.object[attribute]) { + return this.object[attribute]; + } else { + info_debug('This object is not accessible by the rule engine ' , this.object); + return null; + } } } else {