Mercurial > hg > extraction-interface
changeset 83:7b05275b7a70 extractapp
book_id as string in postdata
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 23 Apr 2015 15:26:48 +0200 |
parents | 23b6bd897777 |
children | ecc4b22e9b05 |
files | models/extractapp.php |
diffstat | 1 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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'];