mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 11:53:07 +02:00
When bulk editing custom series-type columns and not provding a series number use 1 as the default, instead of None
This commit is contained in:
commit
605c97767d
1 changed files with 2 additions and 0 deletions
|
|
@ -532,6 +532,8 @@ def _set_custom(self, id_, val, label=None, num=None, append=False,
|
|||
|
||||
if data['datatype'] == 'series' and extra is None:
|
||||
(val, extra) = self._get_series_values(val)
|
||||
if extra is None:
|
||||
extra = 1.0
|
||||
|
||||
books_to_refresh = set([])
|
||||
if data['normalized']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue