mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not allow author names to be set to blank via the Manage authors function. Blank authors are now automatically set to 'Unknown'
This commit is contained in:
parent
293b270066
commit
83139590f9
@ -2653,6 +2653,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
def rename_author(self, old_id, new_name):
|
||||
# Make sure that any commas in new_name are changed to '|'!
|
||||
new_name = new_name.replace(',', '|').strip()
|
||||
if not new_name:
|
||||
new_name = _('Unknown')
|
||||
|
||||
# Get the list of books we must fix up, one way or the other
|
||||
# Save the list so we can use it twice
|
||||
|
Loading…
x
Reference in New Issue
Block a user