Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
These two changes allow for the displayed place name to reflect a user's Place Format to be reflected in event listings
  • Loading branch information
DaveSch-gramps committed Oct 9, 2023
1 parent 3360b13 commit 32267a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ def get_event_data(self, evt, evt_ref, uplink, gid=None):

place_hyper = None
if place:
place_name = _pd.display(self.r_db, place, evt.get_date_object(), fmt=0)
place_name = _pd.display(self.r_db, place, evt.get_date_object())
place_hyper = self.place_link(place_handle, place_name, uplink=uplink)

evt_desc = evt.get_description()
Expand Down Expand Up @@ -2307,7 +2307,7 @@ def media_ref_rect_regions(self, handle, linkurl=True):
_linkurl = self.report.build_url_fname_html(_obj.handle, "evt", True)
elif classname == "Place":
_obj = self.r_db.get_place_from_handle(newhandle)
_name = _pd.display(self.r_db, _obj, fmt=0)
_name = _pd.display(self.r_db, _obj)
if not _name:
_name = self._("Unknown")
_linkurl = self.report.build_url_fname_html(newhandle, "plc", True)
Expand Down

0 comments on commit 32267a4

Please sign in to comment.