Skip to content
Snippets Groups Projects
Commit 0c3a5968 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Loghistory: fixed error when an empty blob-field was logged

parent 756c34fc
No related branches found
No related tags found
No related merge requests found
...@@ -346,7 +346,7 @@ LogHistoryExecutor.prototype._getFormattedValue = function (pColumnName, pDescri ...@@ -346,7 +346,7 @@ LogHistoryExecutor.prototype._getFormattedValue = function (pColumnName, pDescri
} }
else if (pDescription.translate4Log != null && pDescription.translate4Log != "") else if (pDescription.translate4Log != null && pDescription.translate4Log != "")
{ {
var params = Translate4LogParams.generateParams(this.idValue, pValue.toString(), this.sqlAction, this.translationLanguage); var params = Translate4LogParams.generateParams(this.idValue, pValue != null ? pValue.toString() : null, this.sqlAction, this.translationLanguage);
var scriptId = "LogHistoryExecutor._getFormattedValue." var scriptId = "LogHistoryExecutor._getFormattedValue."
+ this.structureDefinitionAlias + "." + this.affectedTable + "." + pColumnName + ".translate4Log"; + this.structureDefinitionAlias + "." + this.affectedTable + "." + pColumnName + ".translate4Log";
pValue = process.executeScript(scriptId, pDescription.translate4Log, params, vars.get("$sys.dbalias")); pValue = process.executeScript(scriptId, pDescription.translate4Log, params, vars.get("$sys.dbalias"));
......
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