- fixed setParameters() bug for moving/new connections, #269

This commit is contained in:
Exodus4D
2016-07-30 23:18:46 +02:00
parent 642dc89675
commit 6349ce7b36
2 changed files with 8 additions and 8 deletions

View File

@@ -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;
};

View File

@@ -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;
};