lukaiser / pressbooks-lists

0 stars 0 forks source link

numbering of lists not connected to chapters #7

Closed bdolor closed 10 years ago

bdolor commented 10 years ago

Display chapter number is on, yet numbering of the lists isn't connected to which chapter it lives in. Expected 1.1, 1.2 for chapter 1 images and 2.1,2.2 for chapter 2 images, etc. Instead there is a lot of repetition of 0.1, 0.2, 0.3...

screen shot 2014-09-09 at 3 33 09 pm

lukaiser commented 10 years ago

I guess that the ones with a 0 chapter number are in chapters not published yet. Is this correct? Otherwise I can't reproduce the error.

lukaiser commented 10 years ago

If the problems really are unpublished chapters, then it should be fixed with 341e018af5667172f39f7e0bc4590d0725ea88d1

lukaiser commented 10 years ago

It isn't fixed. I finally could reproduce the problem. Drafts sometime do not have slugs. To fix this, use PressBooks\Book::fixSlug