From 6349ce7b36fa7f341bab1f52ba200069df21ca94 Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Sat, 30 Jul 2016 23:18:46 +0200 Subject: [PATCH] - fixed setParameters() bug for moving/new connections, #269 --- js/app/map/map.js | 8 ++++---- public/js/v1.1.3/app/map/map.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/app/map/map.js b/js/app/map/map.js index d8c8e35f..d1a2e3aa 100644 --- a/js/app/map/map.js +++ b/js/app/map/map.js @@ -1441,10 +1441,10 @@ define([ } // set update date (important for update check) - connection.setParameters({ - updated: newConnectionData.updated, - eolUpdated: newConnectionData.eolUpdated - }); + // important: set parameters ONE-by-ONE! + // -> (setParameters() will overwrite all previous params) + connection.setParameter('updated', newConnectionData.updated); + connection.setParameter('eolUpdated', newConnectionData.eolUpdated); return connection; }; diff --git a/public/js/v1.1.3/app/map/map.js b/public/js/v1.1.3/app/map/map.js index d8c8e35f..d1a2e3aa 100644 --- a/public/js/v1.1.3/app/map/map.js +++ b/public/js/v1.1.3/app/map/map.js @@ -1441,10 +1441,10 @@ define([ } // set update date (important for update check) - connection.setParameters({ - updated: newConnectionData.updated, - eolUpdated: newConnectionData.eolUpdated - }); + // important: set parameters ONE-by-ONE! + // -> (setParameters() will overwrite all previous params) + connection.setParameter('updated', newConnectionData.updated); + connection.setParameter('eolUpdated', newConnectionData.eolUpdated); return connection; };