mirror of
https://github.com/janeczku/calibre-web
synced 2025-04-28 21:53:14 +00:00
Bugfix edit books list (delete value)
This commit is contained in:
parent
0afba50953
commit
14bb01010d
@ -283,7 +283,7 @@ def edit_selected_books():
|
||||
@edit_required
|
||||
def edit_book_param(param, vals):
|
||||
elements = vals.get('pk',[])
|
||||
if not vals.get('value'):
|
||||
if vals.get('value', None) is None:
|
||||
return jsonify(success=False, msg=_("Value is missing on request"))
|
||||
if not elements :
|
||||
return jsonify(success=False, msg=_("Oops! Selected book is unavailable. File does not exist or is not accessible"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user