From 4e4ff7f6c750fd17bb21799d455807eea6976929 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 3 Jan 2021 11:43:52 +1100 Subject: [PATCH] fixed bugs 9 & 10, just missing quotes in html for hidden value --- BUGs | 11 ----------- templates/book.html | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/BUGs b/BUGs index b24b687..861ba33 100644 --- a/BUGs +++ b/BUGs @@ -15,14 +15,3 @@ BUG-6: author,series, etc. do not have explicit ordering like sub-books... sort BUG-7: if you remove a series from a book, it won't appear in the series drop-down if it is the first 'missing' book in that series -- either reset the list, or show all series always? BUG-8: if you add a sub-book, then fail to validate (say no genre), then it takes you back, you click a genre (BUT it has lost th eparent association), so it adds a book, not a sub-book - -### SHOWSTOPPERS: sub book issues, did the following steps: -BUG-9: raw DB error as blurb field is undefined -- seems the hidden fields at bottom of form are missing -BUG-10: raw DB error as blurb field is undefined -- we are not trapping this sort of DB error? - http://mara.ddp.net:5000/series/112 - http://mara.ddp.net:5000/book/1282 (Mavin Manyshaped) - Add Sub-book -> BUG-9 - then to test above, I: - created a new book - created a new sub-book - Saved it, and it added to Mavin Manyshaped parent book, not the new book -> BUG 10 diff --git a/templates/book.html b/templates/book.html index eb880b4..bf401e6 100644 --- a/templates/book.html +++ b/templates/book.html @@ -207,7 +207,7 @@ function AddAuthorToBook(num) { or key == 'condition' or key == 'blurb' ) %} {{book_form[key](class="form-control", rows=rows, disabled="disabled" )}} {# disabled fields do not come through in form post, so add hidden to make it work #} - + {% else %} {{book_form[key](class="form-control", rows=rows )}} {% endif %}