From 7c8036d8f39ecf80f16f5516074bd087290efdfe Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 26 May 2015 00:44:50 +0300 Subject: [PATCH] Fixed bug in addObject task where a given parameter value may be set to all descendant parameters wth the same name. --- lib/tasks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks.coffee b/lib/tasks.coffee index 0bb1dad..a75b3b6 100644 --- a/lib/tasks.coffee +++ b/lib/tasks.coffee @@ -252,7 +252,7 @@ this.addObject = (task, methodResponse, callback) -> if deviceUpdates and deviceUpdates.parameterValues? for p1 in deviceUpdates.parameterValues for p2 in task.parameterValues - if common.endsWith(p1[0], ".#{p2[0]}") + if p1[0] == "#{task.objectName}.#{task.session.instanceNumber}.#{p2[0]}" t = if p2[2] then p2[2] else p1[2] v = common.matchType(p1[1], p2[1]) # TODO only include if writable