Skip to content

Commit fc4daa5

Browse files
authored
Merge pull request #2310 from laws-africa/amending-title
default to title when there's no numbered title for an amending work
2 parents 70181e9 + b414403 commit fc4daa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indigo_app/views/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_context_data(self, **kwargs):
6060
if plugin:
6161
for a in amendments:
6262
amending_work = Work.objects.get(frbr_uri=a['amending_work']['frbr_uri'])
63-
a['amending_work']['numbered_title_localised'] = plugin.work_numbered_title(amending_work)
63+
a['amending_work']['numbered_title_localised'] = plugin.work_numbered_title(amending_work) or amending_work.title
6464
context['amendments_json'] = json.dumps(amendments)
6565

6666
context['form'] = DocumentForm(instance=doc)

0 commit comments

Comments
 (0)