solved BUG-11 (adding to wrong parent book)
This commit is contained in:
1
BUGs
1
BUGs
@@ -26,4 +26,3 @@ BUG-8 if you add a sub-book, then fail to validate (say no genre), then it takes
|
||||
Saved it, and it added to Mavin Manyshaped parent book, not the new book -> BUG 10
|
||||
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?
|
||||
BUG-11 added to wrong parent book
|
||||
|
||||
@@ -131,14 +131,15 @@ function AddAuthorToBook(num) {
|
||||
{{ book_form.id }}
|
||||
{{ book_form.csrf_token }}
|
||||
{% if b.parent|length %}
|
||||
{{b.parent}}
|
||||
<div class="form-row">
|
||||
<label class="col-lg-2 col-form-label bg-secondary text-white">Parent Book:</label>
|
||||
<div class="col">
|
||||
<button disabled class="col btn btn-outline-primary">
|
||||
<i><a href="/book/{{b.parent[0].id}}">{{b.parent[0].title}}</a></i>
|
||||
<i><a href="/book/{{b.parent.id}}">{{b.parent.title}}</a></i>
|
||||
</button>
|
||||
</div>
|
||||
<input type="hidden" name="parent_id" value="{{b.parent[0].id}}">
|
||||
<input type="hidden" name="parent_id" value="{{b.parent.id}}">
|
||||
</div>
|
||||
{% endif %}
|
||||
{% for key in keys %}
|
||||
|
||||
Reference in New Issue
Block a user