Template does not show correct result with series_index[0]

Bug #1247348 reported by Melanie Hotz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

Calibre 1.9/2 Windows

I think it is a problem with the combination of my template, series_idx[0] in more than one book record

Steps to reproduce:
Defined a column with the following template:
{series_index:0>3s}!
(restart calibre)

Add (e.g. 3) books without formats and give the series the name test
change the idx of the 1st book to 0. The template column shows 000! (this is ok)
restart calibre (nothing changed, all is ok)
change another (e.g. the 3rd) book to idx 0.
The template column of the 3rd book shows 000! (this is ok)
(restart calibre)
The template column of the 3rd book shows ! (the zeroes are missing, this in not ok)
Enter the the metadata dialog of the 3rd book. Leave it with ok
change the idx of the 1st book to 0. The template column shows 000! (this is ok)
Enter the the metadata dialog at the 1st book. Step with next to the 2nd step whis next to the 3rd step with previous to the 2nd. Exit the dialog with ok.
The 1st and the the 3rd now again shows only ! (which is not ok).
Restarting Calibe has the same effect.

Revision history for this message
Melanie Hotz (melanie80a) wrote :
Revision history for this message
Melanie Hotz (melanie80a) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1247348

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

See comments on github

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.