From b94c5533a936ddfea145b19ab7059f08095c66ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 30 Jun 2015 13:32:22 +0200 Subject: [PATCH] Missing parent insertion of value for Time and TimeDelta In Sao.rpc.prepareObject if a parent is passed, the result value must be in the parent. --- src/rpc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rpc.js b/src/rpc.js index 51f14554f8..7e9243c209 100644 --- a/src/rpc.js +++ b/src/rpc.js @@ -203,11 +203,17 @@ 'second': value.second(), 'microsecond': value.millisecond() * 1000 }; + if (parent) { + parent[index] = value; + } } else if (value.isTimeDelta) { value = { '__class__': 'timedelta', 'seconds': value.asSeconds() }; + if (parent) { + parent[index] = value; + } } else if (value instanceof Sao.Decimal) { value = { '__class__': 'Decimal',