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

Attribute: Fixing the validation of attribute counts (min/max) in...

Attribute: Fixing the validation of attribute counts (min/max) in attributeRelations - removed logging
parent 5068e19e
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.util");
import("system.datetime");
import("system.translate");
......@@ -388,11 +387,6 @@ AttributeRelationUtils.validateAttributeCount = function (pRowId, pObjectType, p
var deletedRows = vars.get("$field." + pConsumerField + ".deletedRows");
var changedRows = vars.get("$field." + pConsumerField + ".changedRows");
var insertedRows = vars.get("$field." + pConsumerField + ".insertedRows");
logging.log("------------------------");
logging.log("insertedRows = " + JSON.stringify(insertedRows, null, " "));
logging.log("changedRows = " + JSON.stringify(changedRows, null, " "));
logging.log("deletedRows = " + JSON.stringify(deletedRows, null, " "));
if (deletedRows)
{
......@@ -413,7 +407,6 @@ AttributeRelationUtils.validateAttributeCount = function (pRowId, pObjectType, p
//get the current count of usages considering the changes
//this will merge the counts of attributeChanges and the already stored attributerelations
var countObj = AttributeRelationUtils.countAttributeRelations(pRowId, pObjectType, attributeChanges);
logging.log("merged ones (countObj init):" + JSON.stringify(countObj, null, " "));
if (insertedRows) //append the new rows
{
......
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