View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006019 | OXID eShop (all versions) | 2.4. Administer products | public | 2015-01-15 20:20 | 2024-09-25 11:49 |
Reporter | finnegan | Assigned To | |||
Priority | low | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.7 / 5.1.7 | ||||
Fixed in Version | 4.9.0_5.2.0_beta1 | ||||
Summary | 0006019: EE: Main Category in subshops not highlighted | ||||
Description | If you have a product assigned to several subshops and assigned several categories only the LAST category marked as "main category" will be highlighted | ||||
Steps To Reproduce | If you have a product in the Master shop which is assigned to 2 subshops and you assign this product to several categories in the subshops you can select which category should be the main category for the subshop. article_extend -> click on "assign categories", mark the desired category in the right column of the popup, click on "set as main category". This will work in the first subshop. Now change to the 2nd subshop, select this product and do the same. Again this will work, selected category will be displayed with dark blue background. Now the ERROR: If you change back to subshop 1 and check the assigned categories NO category will be displayed as the main category. | ||||
Additional Information | The error presumably is in article_extend_ajax.php, function _getDataFields( $sQ ) $aField['_3'] should be changed to $aField['_4'] (which is the relevant oxtime data column). | ||||
Tags | AJAX, Category, Subshops | ||||
Attached Files | |||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
This might be related to 0005630 and 0005724. |
|
Further investigation: In the above mentioned function _getDataFields( $sQ ) the oxtime column sent to the browser via ajax is marked with "0" if the current record is the main category for this subshop. But the calculation of the oxtime field with the smallest value (= main category) is wrong: } elseif ( $iMinVal > $aField['_3'] ) { ... variable $iMinVal is not updated. |
|
Resolved with 0005630 |