remove redundant setUpdateTimeinfo

--beginUpdate() and endUpdate() already contain setUpdateTimeinfo so having it in the resolveReferenceAttributes() function makes it redundant and could potentially lead to issues.
This commit is contained in:
MNarath1 2025-03-03 14:11:46 +01:00
parent a29d31998b
commit 718afded1f

View File

@ -57,9 +57,7 @@ namespace
const auto* sourceReference = sourceDb->rootGroup()->findEntryByUuid(targetEntry->uuid());
const auto resolvedValue = sourceReference->resolveMultiplePlaceholders(standardValue);
targetEntry->beginUpdate();
targetEntry->setUpdateTimeinfo(false);
targetEntry->attributes()->set(attribute, resolvedValue, targetEntry->attributes()->isProtected(attribute));
targetEntry->setUpdateTimeinfo(true);
targetEntry->endUpdate();
}
}