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 authored and GitHub committed 2025-11-02 12:29:14 -05:00
1 parent 9031cb530e
commit a709f14cf3
1 file changed
+2 -2
+2 -2
View File
@@ -56,9 +56,9 @@ namespace
// but those cases with high probability 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();
}
}