Ensure that database restriction of server dialog should work with special characters. Fixes #3800

This commit is contained in:
Khushboo Vashi
2019-01-21 17:24:46 +05:30
committed by Akshay Joshi
parent a9794d8ab4
commit 3ffeb4be45
2 changed files with 4 additions and 2 deletions

View File

@@ -1849,7 +1849,8 @@ define([
},
toRaw: function(formattedData) {
if (_.isArray(formattedData)) {
return _.map(formattedData, decodeURIComponent);
let tmpArr = _.map(formattedData, encodeURIComponent);
return _.map(tmpArr, decodeURIComponent);
} else {
if (!_.isNull(formattedData) && !_.isUndefined(formattedData)) {
return decodeURIComponent(formattedData);