source/Application/Controller/Admin/ArticleMain.php
protected function _copySelectlists($sOldId, $sNewId)
    {
        $myUtilsObject = \OxidEsales\Eshop\Core\Registry::getUtilsObject();
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $sQ = "select oxselnid from oxobject2selectlist where oxobjectid = " . $oDb->quote($sOldId);
        $oRs = $oDb->select($sQ);
        if ($oRs !== false && $oRs->count() > 0) {
            while (!$oRs->EOF) {
                $sUid = $myUtilsObject->generateUID();
                $sId = $oRs->fields[0];
                $sSql = "insert into oxobject2selectlist (oxid, oxobjectid, oxselnid) " .
                        "VALUES (" . $oDb->quote($sUid) . ", " . $oDb->quote($sNewId) . ", " . $oDb->quote($sId) . ") ";
                $oDb->execute($sSql);
                $oRs->fetchRow();
            }
        }
    }
protected function _copySelectlists($sOldId, $sNewId)
    {
        $myUtilsObject = \OxidEsales\Eshop\Core\Registry::getUtilsObject();
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $sQ = "select oxselnid from oxobject2selectlist where oxobjectid = " . $oDb->quote($sOldId);
        $oRs = $oDb->select($sQ);
        if ($oRs !== false && $oRs->count() > 0) {
            while (!$oRs->EOF) {
                $sUid = $myUtilsObject->generateUID();
                $sId = $oRs->fields[0];
                $sSql = "insert into oxobject2selectlist (oxid, oxobjectid, oxselnid) " .
                        "VALUES (" . $oDb->quote($sUid) . ", " . $oDb->quote($sNewId) . ", " . $oDb->quote($sId) . ") ";
                $oDb->execute($sSql);
                $oRs->fetchRow();
            }
        }
    }
protected function _copySelectlists ( $ sOldId , $ sNewId ) { $ myUtilsObject = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsObject ( ) ; $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "select oxselnid from oxobject2selectlist where oxobjectid = " . $ oDb -> quote ( $ sOldId ) ; $ oRs = $ oDb -> select ( $ sQ ) ; if ( $ oRs !== false && $ oRs -> count ( ) > 0 ) { while ( ! $ oRs -> EOF ) { $ sUid = $ myUtilsObject -> generateUID ( ) ; $ sId = $ oRs -> fields [ 0 ] ; $ sSql = "insert into oxobject2selectlist (oxid, oxobjectid, oxselnid) " . "VALUES (" . $ oDb -> quote ( $ sUid ) . ", " . $ oDb -> quote ( $ sNewId ) . ", " . $ oDb -> quote ( $ sId ) . ") " ; $ oDb -> execute ( $ sSql ) ; $ oRs -> fetchRow ( ) ; } } }
Copying selectlists assignments

@param string $sOldId Id from old article
@param string $sNewId Id from new article
Copying selectlists assignments