Fix KeeShare entries with references not updating (#11809)

A Entry that gets shared containing a reference Attribute would not write a history entry upon resolving said Attribute resulting in the import into the target database not beeing triggered despite the changes beeing written to the keeshare db.
This commit is contained in:
MNarath 2025-11-02 18:29:14 +01:00 committed by Jonathan White
parent 6809c4da1b
commit a98d3b7c64
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01

View file

@ -56,9 +56,9 @@ namespace
// but those cases with high propability constructed examples and very rare in real usage
const auto* sourceReference = sourceDb->rootGroup()->findEntryByUuid(targetEntry->uuid());
const auto resolvedValue = sourceReference->resolveMultiplePlaceholders(standardValue);
targetEntry->setUpdateTimeinfo(false);
targetEntry->beginUpdate();
targetEntry->attributes()->set(attribute, resolvedValue, targetEntry->attributes()->isProtected(attribute));
targetEntry->setUpdateTimeinfo(true);
targetEntry->endUpdate();
}
}