View Issue Details

IDProjectCategoryView StatusLast Update
0005267OXID eShop (all versions)2.4. Administer productspublic2013-07-30 14:25
Reportertorsten.dix 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.7.6 / 5.0.6 
Target VersionFixed in Version4.7.7 / 5.0.7 
Summary0005267: Bug in Article SEO-Tab
DescriptionThe SEO-URL for Articles can not be edited for any Category, which is not the main category of this article
Steps To ReproduceChoose 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 InformationThe 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;
    }
TagsSEO
ThemeBoth
BrowserAll
PHP Versionany
MySQL Versionany

Activities

mark

2013-07-01 12:32

reporter   ~0008861

+1

Linas Kukulskis

2013-07-04 10:28

reporter   ~0008875

added additinal check for admin