Merge pull request #2992 from jderuiter/new-edition-issues

parent_work was not always included when needed
This commit is contained in:
Mouse Reeve 2023-09-22 17:00:40 -07:00 committed by GitHub
commit 0a029e6e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
{% csrf_token %}
<input type="hidden" name="last_edited_by" value="{{ request.user.id }}">
{% if form.parent_work %}
{% if book.parent_work.id or form.parent_work %}
<input type="hidden" name="parent_work" value="{% firstof book.parent_work.id form.parent_work %}">
{% endif %}