View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005267 | OXID eShop (all versions) | 2.4. Administer products | public | 2013-07-01 12:28 | 2019-01-14 15:26 |
| Reporter | torsten.dix | Assigned To | |||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.7.6 / 5.0.6 | ||||
| Fixed in Version | 4.7.7 / 5.0.7 | ||||
| Summary | 0005267: Bug in Article SEO-Tab | ||||
| Description | The SEO-URL for Articles can not be edited for any Category, which is not the main category of this article | ||||
| Steps To Reproduce | Choose an article, which is assigned to more than one category. Go to the SEO-tab of this article. Change the active category of this article. The SEO-url of the article won't change! Also, you can't edit the SEO-url of the article in this category. | ||||
| Additional Information | The bug is located in method _getCategory of oxSeoEncoderArticle. In earlier versions, the category was identified by using getActCategory(). This was changed to getActiveCategory() which is not available in the controller Article_Seo. So I locally fixed the problem by adding three lines to this method, which additionally checks, if the controller is Article_Seo, and than identifies the category by using getActCatId(): Here is the code of the modified method, where the elseif-part is new: protected function _getCategory( $oArticle, $iLang ) { $oCat = null; $oView = $this->getConfig()->getActiveView(); if ( $oView instanceof oxUBase ) { $oCat = $oView->getActiveCategory(); } elseif ( $oView instanceof Article_Seo ) { $oCat = oxnew('oxcategory'); $oCat->load($oView->getActCatId()); } return $oCat; } | ||||
| Tags | SEO | ||||
| Theme | Both | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||
| related to | 0006940 | closed | benjamin.joerger | SEO Url can only be changed for main category |