View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006968 | OXID eShop (all versions) | 2.4. Administer products | public | 2019-04-04 14:20 | 2019-04-09 11:52 |
Reporter | Daniel Grimm | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 6.1.3 | ||||
Summary | 0006968: In der ManufacturerMainAjax.php ist der Aufruf des 'blVariantsSelection' config params falshc | ||||
Description | $config->getRequestParameter('blVariantsSelection') anstatt $config->getConfigParam('blVariantsSelection') | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
What makes you say that? The parameter is read from the config and not from the URL. Therefore it should read as follows: $config->getConfigParam('blVariantsSelection') instead of $config->getRequestParameter('blVariantsSelection') - es - |
|
protected function _getQuery() { $config = \OxidEsales\Eshop\Core\Registry::getConfig(); // looking for table/view $articlesViewName = $this->_getViewName('oxarticles'); $objectToCategoryViewName = $this->_getViewName('oxobject2category'); $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(); $manufacturerId = $config->getRequestParameter('oxid'); $syncedManufacturerId = $config->getRequestParameter('synchoxid'); // Manufacturer selected or not ? if (!$manufacturerId) { // performance $query = ' from ' . $articlesViewName . ' where ' . $articlesViewName . '.oxshopid="' . $config->getShopId() . '" and 1 '; $query .= $config->getRequestParameter('blVariantsSelection') ? '' : " and $articlesViewName.oxparentid = '' and $articlesViewName.oxmanufacturerid != " . $database->quote($syncedManufacturerId); } elseif ($syncedManufacturerId && $syncedManufacturerId != $manufacturerId) { // selected category ? $query = " from $objectToCategoryViewName left join $articlesViewName on "; $query .= $config->getRequestParameter('blVariantsSelection') ? " ( $articlesViewName.oxid = $objectToCategoryViewName.oxobjectid or $articlesViewName.oxparentid = $objectToCategoryViewName.oxobjectid )" : " $articlesViewName.oxid = $objectToCategoryViewName.oxobjectid "; $query .= 'where ' . $articlesViewName . '.oxshopid="' . $config->getShopId() . '" and ' . $objectToCategoryViewName . '.oxcatnid = ' . $database->quote($manufacturerId) . ' and ' . $articlesViewName . '.oxmanufacturerid != ' . $database->quote($syncedManufacturerId); $query .= $config->getRequestParameter('blVariantsSelection') ? '' : " and $articlesViewName.oxparentid = '' "; } else { $query = " from $articlesViewName where $articlesViewName.oxmanufacturerid = " . $database->quote($manufacturerId); $query .= $config->getRequestParameter('blVariantsSelection') ? '' : " and $articlesViewName.oxparentid = '' "; } return $query; } sorry for the missunderstanding ... its exactly liku u say, but above is the code from ManufacturerMainAjax.php and its read from request instead of config :) |
|
Hi DanielGrimm, thanks for reporting the issue. I already created a Pull Request to fix it. The affected lines are listed here: https://github.com/OXID-eSales/oxideshop_ce/pull/698/files Kind regards Michael Keiluweit |