Skip to content

Commit

Permalink
Merge pull request #2992 from jderuiter/new-edition-issues
Browse files Browse the repository at this point in the history
parent_work was not always included when needed
  • Loading branch information
mouse-reeve authored Sep 23, 2023
2 parents 85b647b + 05f8bd0 commit 0a029e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookwyrm/templates/book/edit/edit_book_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit 0a029e6

Please sign in to comment.