Skip to content
Snippets Groups Projects
Commit de6aec7e authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

workaround bug in SqlMaskingUtils.concat as I found no simple way to fix it

parent 7cf16d77
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,6 @@ import("system.translate");
import("system.result");
if (vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim())
{
result.string(translate.text("No advertising by") + " " + vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim());
{ // bug in SqlMaskingUtils.concat. -> use " " as seperator and replace " " by ", "
result.string(translate.text("No advertising by") + " " + vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim().replace(" ", ", "));
}
......@@ -3,6 +3,6 @@ import("system.translate");
import("system.result");
if (vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim())
{
result.string(translate.text("No advertising by") + " " + vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim());
{ // bug in SqlMaskingUtils.concat. -> use " " as seperator and replace " " by ", "
result.string(translate.text("No advertising by") + " " + vars.get("$field.COMMRESTRICTIONS_ACTIVE").trim().replace(" ", ", "));
}
......@@ -498,7 +498,7 @@ ContactUtils.getActiveCommRestrictionsSubselect = function()
parts.push("case when exists(" + subquery.toString() + ") then '" + pMedium[1] + "' else '' end");
})
return sqlMasking.concat(parts, ", ", false);
return sqlMasking.concat(parts, " ", false);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment