Author: bleny Date: 2013-09-02 11:47:04 +0200 (Mon, 02 Sep 2013) New Revision: 403 Url: http://forge.codelutin.com/projects/franciaflex-magalie/repository/revisions... Log: fixes #3145 absurd code lack of test Modified: trunk/magalie-web/src/main/webapp/js/receive-article-input.js Modified: trunk/magalie-web/src/main/webapp/js/receive-article-input.js =================================================================== --- trunk/magalie-web/src/main/webapp/js/receive-article-input.js 2013-09-02 09:35:28 UTC (rev 402) +++ trunk/magalie-web/src/main/webapp/js/receive-article-input.js 2013-09-02 09:47:04 UTC (rev 403) @@ -62,13 +62,14 @@ async: false, success: function(data) { location = data.receptionLocation; // null si le code barre n'est pas valide + if (location != null) { + locations.push(location); + } } }); } if (location == null) { throw new ValidationError(barcode + " n'est pas le code barre d'un emplacement valide"); - } else { - locations.push(location); } if (location.fullLocation) { throw new ValidationError("Emplt " + barcode + " en erreur - choisir un autre");