source/Application/Controller/Admin/ContentMain.php
protected function _checkIdent($sIdent, $sOxId)
    {
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();

        $blAllow = false;

        // null not allowed
        if (!strlen($sIdent)) {
            $blAllow = true;
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        } elseif ($masterDb->getOne("select oxid from oxcontents where oxloadid = " . $masterDb->quote($sIdent) . " and oxid != " . $masterDb->quote($sOxId) . " and oxshopid = '" . \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId() . "'")) {
            $blAllow = true;
        }

        return $blAllow;
    }
protected function _checkIdent($sIdent, $sOxId)
    {
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();

        $blAllow = false;

        // null not allowed
        if (!strlen($sIdent)) {
            $blAllow = true;
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        } elseif ($masterDb->getOne("select oxid from oxcontents where oxloadid = " . $masterDb->quote($sIdent) . " and oxid != " . $masterDb->quote($sOxId) . " and oxshopid = '" . \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId() . "'")) {
            $blAllow = true;
        }

        return $blAllow;
    }
protected function _checkIdent ( $ sIdent , $ sOxId ) { // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). $ masterDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( ) ; $ blAllow = false ; // null not allowed if ( ! strlen ( $ sIdent ) ) { $ blAllow = true ; // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). } elseif ( $ masterDb -> getOne ( "select oxid from oxcontents where oxloadid = " . $ masterDb -> quote ( $ sIdent ) . " and oxid != " . $ masterDb -> quote ( $ sOxId ) . " and oxshopid = '" . \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) . "'" ) ) { $ blAllow = true ; } return $ blAllow ; }
Check if ident is unique

@param string $sIdent ident
@param string $sOxId  Object id

@return null
Check if ident is unique