View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006220 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2015-08-28 16:10 | 2015-12-07 11:35 |
Reporter | hendrikfreytag | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.9.5 / 5.2.5 | ||||
Fixed in Version | 4.9.7 / 5.2.7 | ||||
Summary | 0006220: Article navigation problems | ||||
Description | If you have some articles with an alphanumeric oxid in db and some with pure numeric oxid, which are looking the same except for the alphabetic character (e.g. "123" and "123X"), the navigation of articles is broken. | ||||
Steps To Reproduce | - Create an article with oxid '12345' and one with oxid '12345A' and put them in the same category, add some more articles in this category or use an existing one. - In frontend click on one article in the category and navigate a bit by using "NEXT PRODUCT" and "PREVIOUS PRODUCT". - At some point you will end in an loop and can't navigate further | ||||
Additional Information | Problem is the use of array_search. It will compare '12345' and '12345A' to true. This issue can be fixed by using strict mode of array_search. http://php.net/manual/de/function.array-search.php Reproducible on all versions. | ||||
Tags | Solution Provided | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0006221 | resolved | anton.fedurtsya | OXID loads an incorrect manufacturer |
|
see examples on http://php.net/manual/de/language.types.string.php#language.types.string.conversion for an explanation on PHP's behaviour. |