Fix for TC-1777. Makes sure to check the interface as well as attribute name 60/29060/2 accepted/tizen/3.0.m14.3/ivi/20141022.100844 submit/tizen_3.0.m14.3_ivi/20141022.015626 submit/tizen_ivi/20141020.235134
authorBrian Jones <brian.j.jones@intel.com>
Mon, 20 Oct 2014 23:35:42 +0000 (16:35 -0700)
committerBrian Jones <brian.j.jones@intel.com>
Mon, 20 Oct 2014 23:37:17 +0000 (16:37 -0700)
Change-Id: Ib863365b316c1910f21c50f1bb9b975f6a40f490

js/services/carIndicator.js
packaging/modello-common.changes

index 2b3a84d..6e9b07c 100644 (file)
@@ -525,10 +525,11 @@ CarIndicator.prototype.onDataUpdate = function(data, self, lisenersID) {
                for ( var property in data) {
                        if (data.hasOwnProperty(property)) {
                                mapping = undefined;
-                               if (property !== "time" && property !== "zone" && property.search("Sequence") === -1) {
+                               if (property !== "time" && property !== "zone" && property !== "interfaceName" && property.search("Sequence") === -1) {
                                        for ( var element in self._mappingTable) {
-                                               if (self._mappingTable.hasOwnProperty(element)) {
-                                                       if (self._mappingTable[element].attributeName.toLowerCase() === property.toLowerCase()) {
+                                               if (self._mappingTable.hasOwnProperty(element) && self._mappingTable[element].interfaceName !== undefined) {
+                                                       if (self._mappingTable[element].interfaceName.toLowerCase() === data.interfaceName.toLowerCase() &&
+                                                               self._mappingTable[element].attributeName.toLowerCase() === property.toLowerCase()) {
                                                                /* jshint bitwise: false */
                                                                if (!(zone ^ self._mappingTable[element].zone)) {
                                                                        /* jshint bitwise: true */
index 4fa8f2b..6adb4ab 100644 (file)
@@ -1,3 +1,6 @@
+* Mon Oct 20 2014 Brian Jones <brian.j.jones@intel.com> submit/tizen_ivi/20141016.183406-1-g64442e3
+- Fix for TC-1777. Makes sure to check the interface as well as attribute name
+
 * Thu Oct 16 2014 Brian Jones <brian.j.jones@intel.com> submit/tizen_ivi/20141016.164956-1-g9a44462
 - Removing zones for now, plus a AMB subscribe fix