# HG changeset patch # User Zoe Hong # Date 1429795608 -7200 # Node ID 7b05275b7a709731521ea285405ff76aa03101cc # Parent 23b6bd8977778f8d21481dd4c1523447ba0a64c8 book_id as string in postdata diff -r 23b6bd897777 -r 7b05275b7a70 models/extractapp.php --- a/models/extractapp.php Thu Apr 23 15:02:14 2015 +0200 +++ b/models/extractapp.php Thu Apr 23 15:26:48 2015 +0200 @@ -163,17 +163,7 @@ $this->book_name = $_postdata['bookName']; } if (isset($_postdata['bookId'])) { - $book_id = $_postdata['bookId']; - if ($book_id > 10000) { - // pass - } else if ($book_id >= 1000) { - $book_id = '0'.(string)$book_id; - } else { - $book_id = '00'.(string)$book_id; - } - - $this->book_id = (string)$book_id; - + $this->book_id = $_postdata['bookId']; } if (isset($_postdata['currentFileId'])) { $this->current_fileId = $_postdata['currentFileId'];