4198: Person view does not remove a row correctly when two people are merged.
This patch improves on the context changes: * avoid use of transaction_xx methods * force an abort in case of unclean transaction Backward compatibility is broken to achieve this. svn: r16680
This commit is contained in:
src
Merge
mergeevent.pymergefamily.pymergemedia.pymergenote.pymergeperson.pymergeplace.pymergerepository.pymergesource.py
Reorder.pygen
gui
editors
plugins
import
lib
tool
ChangeNames.pyChangeTypes.pyCheck.pyDateParserDisplayTest.pyEventNames.pyExtractCity.pyMediaManager.pyNotRelated.pyPatchNames.pyRemoveUnused.pyReorderIds.pySortEvents.py
view
web
@ -47,6 +47,7 @@ _LOG = logging.getLogger(".gui.personview")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from gen.db import DbTxn
|
||||
from gui.views.listview import ListView
|
||||
import Utils
|
||||
from gen.display.name import displayer as name_displayer
|
||||
@ -305,7 +306,7 @@ class BasePersonView(ListView):
|
||||
self.uistate.set_busy_cursor(True)
|
||||
|
||||
# create the transaction
|
||||
with self.dbstate.db.transaction_begin() as trans:
|
||||
with DbTxn('', self.dbstate.db) as trans:
|
||||
|
||||
# create name to save
|
||||
person = self.active_person
|
||||
|
Reference in New Issue
Block a user