View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006053 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2015-02-24 10:01 | 2016-06-08 13:24 |
Reporter | michael_keiluweit | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.9.3 / 5.2.3 | ||||
Fixed in Version | 4.10.0 / 5.3.0 | ||||
Summary | 0006053: It's not possible to use the number 0 as value for the variant | ||||
Description | When using the number 0 (zero) as value then the shop filters it with the function trim. So in case you have clothes sizes with the size 0, it's hard to display it at the frontend. Please see attached screenshots. | ||||
Additional Information | \oxVariantHandler::_fillVariantSelections() The cause (application/models/oxvarianthandler.php:321): $sName = isset($aNames[$i]) ? trim($aNames[$i]) : false; The function trim removes leading zeros, if they are a number: var_dump(trim(012)); //string '12' (length=2) var_dump(trim('012')); //string '012' (length=3) | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
seems related to another older bug: https://bugs.oxid-esales.com/view.php?id=5331 |
|
https://github.com/OXID-eSales/oxideshop_ce/pull/389 |
|
Thank you Michael. Merged the pull request to our master + 5.3. |