Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BK-703 Redirect for draft book does not work for first chapter

  • Loading branch information...
commit 114994715a6b11e244f68836c2ed92215ad5ebf8 1 parent d7ed2c5
@aerkalov aerkalov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/booki/reader/views.py
View
2  lib/booki/reader/views.py
@@ -267,7 +267,7 @@ def draft_book(request, bookid, version=None):
editingEnabled = True
if firstChapter:
- resp = redirect('draft_chapter', bookid = book.url_title, version=version, chapter=firstChapter.url_title)
+ resp = redirect('draft_chapter', bookid = book.url_title, version=book_version.getVersion(), chapter=firstChapter.url_title)
else:
resp = render_to_response('reader/draft_book.html', {"book": book,
"book_version": book_version.getVersion(),
Please sign in to comment.
Something went wrong with that request. Please try again.