View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003304 | OXID eShop (all versions) | 1.06. Search, Tags | public | 2011-10-12 08:47 | 2012-12-07 14:39 |
Reporter | boehme | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 4.5.1 revision 38045 | ||||
Summary | 0003304: result page count calculation can produces "page 1 of 0" | ||||
Description | lets have a look at the last few rows of search::init(): $this->_iCntPages = round( $this->_iAllArtCnt / $iNrofCatArticles + 0.49 ); When only one product was found and $iNrOfCatArticles (max articles shown per page) is about 120 (maybe smaller, i didn't checked the exact value), this will be calculated: 1 / 120 + 0.49 = 0.493333333 after rounding it's int(0). So the pagecount will be set to zero... This variable will also be used for creating the pageNavigation object. What about removing addition of 0.49 and using http://www.php.net/ceil? | ||||
Tags | Search | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
Reminder sent to: boehme Hi, Sorry, but I can not reproduce the case neither in 4.5 nor in eShop 4.6.0 versions. Probably is fixed with other changes. Could you please let us know if you still experience same problem on our latest eShop version 4.6 or demoshop: http://demoshop.oxid-esales.com/enterprise-edition/ http://demoshop.oxid-esales.com/professional-edition/ http://demoshop.oxid-esales.com/community-edition/ ? |
|
Hi, I tried to reproduce the bug on version 4.6 and 4.5 but unsuccessfully. This problem does not exist. Probably is fixed with other changes. So the bug is resolved. Best regards, |