View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005902 | OXID eShop (all versions) | 2.4. Administer products | public | 2014-10-02 17:06 | 2014-11-11 09:02 |
Reporter | leofonic | Assigned To | |||
Priority | immediate | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.9.0 / 5.2.0 | ||||
Target Version | 4.9.2 / 5.2.2 | Fixed in Version | 4.9.2 / 5.2.2 | ||
Summary | 0005902: Variants can't be deactivated | ||||
Description | Variants can be activated but not deactivated. | ||||
Steps To Reproduce | In Demoshop, log into backend, go to an article with variants, deselect some active variants, click "save variants", variants are still active. | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
Tried on demo shop and was unable to reproduce. Although the issue might be, that "save selection" button is being clicked instead of "save variants". Former is on the top, and later is on the bottom. With a lot of variants, "save variants" is not visible initially (requires scrolling down). |
|
Reproduced on demoshop: https://www.youtube.com/watch?v=2_7-2kdHoiU |
|
Thanks @leofonic, youtube is always a nice idea :-) This bug shall be fixed immediately. The fix shall be available here at the bugtracker as either file download or description. Will be released with 5.2.2 (4.9.2) by the end of November. |
|
Fixed in admin controller article_variant::savevariant() method. First add checkbox logic and only later check if something was changed for variant: // checkbox handling if (is_array($aParams) && !isset($aParams['oxarticles__oxactive'])) { $aParams['oxarticles__oxactive'] = 0; } if (!$this->_isAnythingChanged($oArticle, $aParams)) { return; } |