fixed BUG-48 - sub book add/rem -- it was because QuickParentBook used an array and the code had been half converted to just use an object. Fixed to all be an object/dict now and its working again

This commit is contained in:
2023-10-02 18:46:00 +11:00
parent 22a625d354
commit 668a7066e0
3 changed files with 33 additions and 22 deletions

View File

@@ -426,7 +426,7 @@ function AddAuthorToBook(num) {
{% else %}
<div class="form-row">
{% endif %}
{% if b.parent %}
{% if not b.parent %}
<form role="form" class="form" action="{{url_for('new_book')}}" method="POST">
<input type="hidden" name="add_sub_parent_id" value="{{books.id}}">
{{ book_form.add_sub( class="btn btn-outline-success offset-2 col-2" )}}