This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 9b2e9205ae0f876990c62b96978764df02a8ef63 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Tue Jul 18 17:06:27 2017 +0200 correction des paramettres de requête --- pollen-ui-riot-js/src/main/web/js/FetchService.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/FetchService.js b/pollen-ui-riot-js/src/main/web/js/FetchService.js index 3feec02f..64146ff7 100644 --- a/pollen-ui-riot-js/src/main/web/js/FetchService.js +++ b/pollen-ui-riot-js/src/main/web/js/FetchService.js @@ -83,13 +83,15 @@ class FetchService { let keys = Object.keys(params); keys.forEach((key) => { let value = params[key]; - if (typeof value === "object") { - value = JSON.stringify(value); + if (value) { + if (typeof value === "object") { + value = JSON.stringify(value); + } + if (query.length > 1) { + query += "&"; + } + query += key + "=" + value; } - if (query.length > 1) { - query += "&"; - } - query += key + "=" + value; }); return url + query; } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.