2006-08-24 Alex Roitman <shura@gramps-project.org>

* src/plugins/ChangeTypes.py (run_tool): Properly set the new type.



svn: r7252
This commit is contained in:
Alex Roitman 2006-08-24 19:41:08 +00:00
parent 5b1f1b3d11
commit 031f9211da
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2006-08-24 Alex Roitman <shura@gramps-project.org>
* src/plugins/ChangeTypes.py (run_tool): Properly set the new type.
2006-08-23 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_PersonView.py (person_removed): Properly create
and pass the filter when searchbar is enabled (not sidebar).

View File

@ -127,7 +127,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
continue
event = self.db.get_event_from_handle(event_ref.ref)
if event.get_type().xml_str() == fromtype:
event.set_type(totype)
event.type.set_from_xml_str(totype)
modified = modified + 1
self.db.commit_event(event,self.trans)
if not cli: