Skip to content
Snippets Groups Projects
Commit 0377608f authored by Armand Bahi's avatar Armand Bahi
Browse files

Merge branch 'bug/88-impossible-de-recuperer-les-couches-d-un-service' into 'master'

Resolve "Impossible de récupérer les couches d'un service"

Closes #88

See merge request Development/vitis_apps/application/vmap!78
parents 26018c21 d031dac7
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,18 @@ String.prototype.withoutAccents = function () { ...@@ -90,6 +90,18 @@ String.prototype.withoutAccents = function () {
var noaccent = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'N', 'n', 'C', 'c']; var noaccent = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'N', 'n', 'C', 'c'];
var str = this; var str = this;
// Patch erreur lors de la compilation en mode SIMPLE
if (goog.isObject(str)) {
var sTmp = '';
for (var key in str) {
if (str.hasOwnProperty(key)) {
sTmp += str[key];
}
}
str = sTmp
}
for (var i = 0; i < accent.length; i++) { for (var i = 0; i < accent.length; i++) {
str = str.replace(accent[i], noaccent[i]); str = str.replace(accent[i], noaccent[i]);
} }
...@@ -107,6 +119,17 @@ String.prototype.removeURLParams = function (aForbiddenParams) { ...@@ -107,6 +119,17 @@ String.prototype.removeURLParams = function (aForbiddenParams) {
var sUrl = this; var sUrl = this;
var paramIndex, nextParamIndex; var paramIndex, nextParamIndex;
// Patch erreur lors de la compilation en mode SIMPLE
if (goog.isObject(sUrl)) {
var sTmp = '';
for (var key in sUrl) {
if (sUrl.hasOwnProperty(key)) {
sTmp += sUrl[key];
}
}
sUrl = sTmp
}
for (var i = 0; i < aForbiddenParams.length; i++) { for (var i = 0; i < aForbiddenParams.length; i++) {
// Cas où le paramètre commence par & // Cas où le paramètre commence par &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment