Skip to content
Snippets Groups Projects
Commit 39906d1f authored by S.Listl's avatar S.Listl
Browse files

1057920 Loghistory didn't work for ObjectSelection attributes

parent 7bc81126
No related branches found
No related tags found
No related merge requests found
......@@ -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")
{
......
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