formdata: use actual status_item in linked object errors (#46850)

This commit is contained in:
Thomas NOËL 2020-09-21 17:54:14 +02:00
parent af5cf63d95
commit be79d944a0
1 changed files with 1 additions and 1 deletions

View File

@ -1249,7 +1249,7 @@ class FormData(StorableObject):
# use custom error message depending on target type
LoggedError.record(_('Could not find linked "%(object_name)s" object by id %(object_id)s') % {
'object_name': objectdef.name, 'object_id': target_id},
formdata=self, status_item=self, exception=e)
formdata=self, status_item=status_item, exception=e)
else:
# inspect page
try: