Bugfix change uppercase/lowercase on edit authors

Remove autocomplete on several elements to make typeahead work without problems
This commit is contained in:
Ozzie Isaacs
2023-06-17 10:42:33 +02:00
parent 4dc5885723
commit 062efc4e78
2 changed files with 9 additions and 7 deletions

View File

@@ -1246,11 +1246,10 @@ def handle_title_on_edit(book, book_title):
def handle_author_on_edit(book, author_name, update_stored=True):
change = False
# handle author(s)
input_authors, renamed = prepare_authors(author_name)
change = modify_database_object(input_authors, book.authors, db.Authors, calibre_db.session, 'author')
# Search for each author if author is in database, if not, author name and sorted author name is generated new
# everything then is assembled for sorted author field in database
sort_authors_list = list()
@@ -1265,6 +1264,9 @@ def handle_author_on_edit(book, author_name, update_stored=True):
if book.author_sort != sort_authors and update_stored:
book.author_sort = sort_authors
change = True
change |= modify_database_object(input_authors, book.authors, db.Authors, calibre_db.session, 'author')
return input_authors, change, renamed