source/Application/Controller/Admin/ManufacturerMainAjax.php
public function removeManufacturer()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $articleIds = $this->_getActionIds('oxarticles.oxid');
        $manufacturerId = $config->getRequestParameter('oxid');

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

        if (is_array($articleIds) && !empty($articleIds)) {
            $query = $this->formManufacturerRemovalQuery($articleIds);
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->execute($query);

            $this->resetCounter("manufacturerArticle", $manufacturerId);
        }
    }
public function removeManufacturer()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $articleIds = $this->_getActionIds('oxarticles.oxid');
        $manufacturerId = $config->getRequestParameter('oxid');

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

        if (is_array($articleIds) && !empty($articleIds)) {
            $query = $this->formManufacturerRemovalQuery($articleIds);
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->execute($query);

            $this->resetCounter("manufacturerArticle", $manufacturerId);
        }
    }
public function removeManufacturer ( ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ articleIds = $ this -> _getActionIds ( 'oxarticles.oxid' ) ; $ manufacturerId = $ config -> getRequestParameter ( 'oxid' ) ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "all" ) ) { $ articleViewTable = $ this -> _getViewName ( 'oxarticles' ) ; $ articleIds = $ this -> _getAll ( $ this -> _addFilter ( "select $articleViewTable.oxid " . $ this -> _getQuery ( ) ) ) ; } if ( is_array ( $ articleIds ) && ! empty ( $ articleIds ) ) { $ query = $ this -> formManufacturerRemovalQuery ( $ articleIds ) ; \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> execute ( $ query ) ; $ this -> resetCounter ( "manufacturerArticle" , $ manufacturerId ) ; } }
Removes article from Manufacturer config
Removes article from Manufacturer config