Commit 020ea7f9 authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

The function getChapterItem now returns [chapter, chapter_id].

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44320 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 176bc8d8
......@@ -242,7 +242,7 @@ class OOGranulator(object):
chapter_list = self._getChapterList()
try:
chapter = chapter_list[chapter_id].encode('utf-8')
return [chapter_id, chapter]
return [chapter, chapter_id]
except IndexError:
msg = "Unable to find chapter %s at chapter list." % chapter_id
logger.error(msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment