source/Application/Controller/Admin/CategoryMainAjax.php
public function removeArticle()
    {
        $aArticles = $this->_getActionIds('oxarticles.oxid');
        $sCategoryID = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('oxid');

        // adding
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('all')) {
            $sArticleTable = $this->_getViewName('oxarticles');
            $aArticles = $this->_getAll($this->_addFilter("select $sArticleTable.oxid " . $this->_getQuery()));
        }

        // adding
        if (is_array($aArticles) && count($aArticles)) {
            $this->removeCategoryArticles($aArticles, $sCategoryID);
        }

        $this->resetArtSeoUrl($aArticles, $sCategoryID);
        $this->resetCounter("catArticle", $sCategoryID);

        //notify services
        $relation = oxNew(\OxidEsales\Eshop\Application\Model\Object2Category::class);
        $relation->setCategoryId($sCategoryID);
        $this->dispatchEvent(new AfterModelUpdateEvent($relation));
    }
public function removeArticle()
    {
        $aArticles = $this->_getActionIds('oxarticles.oxid');
        $sCategoryID = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('oxid');

        // adding
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('all')) {
            $sArticleTable = $this->_getViewName('oxarticles');
            $aArticles = $this->_getAll($this->_addFilter("select $sArticleTable.oxid " . $this->_getQuery()));
        }

        // adding
        if (is_array($aArticles) && count($aArticles)) {
            $this->removeCategoryArticles($aArticles, $sCategoryID);
        }

        $this->resetArtSeoUrl($aArticles, $sCategoryID);
        $this->resetCounter("catArticle", $sCategoryID);

        //notify services
        $relation = oxNew(\OxidEsales\Eshop\Application\Model\Object2Category::class);
        $relation->setCategoryId($sCategoryID);
        $this->dispatchEvent(new AfterModelUpdateEvent($relation));
    }
public function removeArticle ( ) { $ aArticles = $ this -> _getActionIds ( 'oxarticles.oxid' ) ; $ sCategoryID = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'oxid' ) ; // adding if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'all' ) ) { $ sArticleTable = $ this -> _getViewName ( 'oxarticles' ) ; $ aArticles = $ this -> _getAll ( $ this -> _addFilter ( "select $sArticleTable.oxid " . $ this -> _getQuery ( ) ) ) ; } // adding if ( is_array ( $ aArticles ) && count ( $ aArticles ) ) { $ this -> removeCategoryArticles ( $ aArticles , $ sCategoryID ) ; } $ this -> resetArtSeoUrl ( $ aArticles , $ sCategoryID ) ; $ this -> resetCounter ( "catArticle" , $ sCategoryID ) ; //notify services $ relation = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Object2Category :: class ) ; $ relation -> setCategoryId ( $ sCategoryID ) ; $ this -> dispatchEvent ( new AfterModelUpdateEvent ( $ relation ) ) ; }
Removes article from category
Removes article from category