diff --git a/process/Loghistory_lib/process.js b/process/Loghistory_lib/process.js index 102df509f36fb4f5afbdf481462f14769e3095de..fa07e912c734554fe0e1955b5e3f926f889630fc 100644 --- a/process/Loghistory_lib/process.js +++ b/process/Loghistory_lib/process.js @@ -150,6 +150,8 @@ LogHistoryExecutor.prototype.execute = function () { description.push(translate.withArguments("%0 from \"%1\" to \"%2\"", [conf.Description, olddata[0], newdata[0]], this.translationLanguage)); } + else + description.push(conf.Description + " " + newdata[0]); } if (conf.RefTable) this.affectedTable = conf.RefTable; } //no extra tables @@ -284,7 +286,15 @@ LogHistoryExecutor.prototype._getDataForExtras = function(pId, pValues) if (this.affectedTable == "AB_ATTRIBUTERELATION") { data[0] = AttributeUtil.getFullAttributeName(pId); - data[1] = AttributeRelationUtils.selectAttributeValue(pId, pValues, true); + //if the attribute type is "OBJECTSELECTION", entities.getRow is used for resolving the displayValue, that can cause an error + try { + data[1] = AttributeRelationUtils.selectAttributeValue(pId, pValues, true); + } + catch (err) + { + logging.log(err); + data[1] = null; + } } else if (this.affectedTable == "COMMUNICATION") {