From e4cbca4b730b3f71c261e189343f0373e65a4839 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 20 Dec 2018 00:10:00 +0000 Subject: [PATCH] Fix contents of enclosed_by secondary dbapi column (#742) The enclosed_by column should contain the first value in the list instead of the last. Resolves #10907. --- gramps/gen/db/generic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index b4fce23fc..8607c37c7 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -2461,4 +2461,5 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): enclosed_by = "" for placeref in place.get_placeref_list(): enclosed_by = placeref.ref + break return enclosed_by