source/Application/Controller/Admin/DiscountMain.php
public function getItemDiscountProductTitle()
    {
        $sTitle = false;
        $sOxId = $this->getEditObjectId();
        if (isset($sOxId) && $sOxId != "-1") {
            $sViewName = getViewName("oxarticles", $this->_iEditLang);
            // Reading from slave is ok here (see ESDEV-3804 and ESDEV-3822).
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sQ = "select concat( $sViewName.oxartnum, ' ', $sViewName.oxtitle ) from oxdiscount
                   left join $sViewName on $sViewName.oxid=oxdiscount.oxitmartid
                   where oxdiscount.oxitmartid != '' and oxdiscount.oxid=" . $database->quote($sOxId);
            $sTitle = $database->getOne($sQ);
        }

        return $sTitle ? $sTitle : " -- ";
    }
public function getItemDiscountProductTitle()
    {
        $sTitle = false;
        $sOxId = $this->getEditObjectId();
        if (isset($sOxId) && $sOxId != "-1") {
            $sViewName = getViewName("oxarticles", $this->_iEditLang);
            // Reading from slave is ok here (see ESDEV-3804 and ESDEV-3822).
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sQ = "select concat( $sViewName.oxartnum, ' ', $sViewName.oxtitle ) from oxdiscount
                   left join $sViewName on $sViewName.oxid=oxdiscount.oxitmartid
                   where oxdiscount.oxitmartid != '' and oxdiscount.oxid=" . $database->quote($sOxId);
            $sTitle = $database->getOne($sQ);
        }

        return $sTitle ? $sTitle : " -- ";
    }
public function getItemDiscountProductTitle ( ) { $ sTitle = false ; $ sOxId = $ this -> getEditObjectId ( ) ; if ( isset ( $ sOxId ) && $ sOxId != "-1" ) { $ sViewName = getViewName ( "oxarticles" , $ this -> _iEditLang ) ; // Reading from slave is ok here (see ESDEV-3804 and ESDEV-3822). $ database = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "select concat( $sViewName.oxartnum, ' ', $sViewName.oxtitle ) from oxdiscount
                   left join $sViewName on $sViewName.oxid=oxdiscount.oxitmartid
                   where oxdiscount.oxitmartid != '' and oxdiscount.oxid=" . $ database -> quote ( $ sOxId ) ; $ sTitle = $ database -> getOne ( $ sQ ) ; } return $ sTitle ? $ sTitle : " -- " ; }
Returns item discount product title

@return string
Returns item discount product title