From a709f14cf3daea2b022cc2d6d22dcb897bb5cbfc Mon Sep 17 00:00:00 2001 From: MNarath <47279840+MNarath1@users.noreply.github.com> Date: Sun, 2 Nov 2025 18:29:14 +0100 Subject: [PATCH] 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. --- src/keeshare/ShareExport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keeshare/ShareExport.cpp b/src/keeshare/ShareExport.cpp index 1a64ccde0..3c622a435 100644 --- a/src/keeshare/ShareExport.cpp +++ b/src/keeshare/ShareExport.cpp @@ -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(); } }