source/Application/Controller/Admin/ArticlePictures.php
protected function _cleanupCustomFields($oArticle)
    {
        $sIcon = $oArticle->oxarticles__oxicon->value;
        $sThumb = $oArticle->oxarticles__oxthumb->value;

        if ($sIcon == "nopic.jpg") {
            $oArticle->oxarticles__oxicon = new \OxidEsales\Eshop\Core\Field();
        }

        if ($sThumb == "nopic.jpg") {
            $oArticle->oxarticles__oxthumb = new \OxidEsales\Eshop\Core\Field();
        }
    }
protected function _cleanupCustomFields($oArticle)
    {
        $sIcon = $oArticle->oxarticles__oxicon->value;
        $sThumb = $oArticle->oxarticles__oxthumb->value;

        if ($sIcon == "nopic.jpg") {
            $oArticle->oxarticles__oxicon = new \OxidEsales\Eshop\Core\Field();
        }

        if ($sThumb == "nopic.jpg") {
            $oArticle->oxarticles__oxthumb = new \OxidEsales\Eshop\Core\Field();
        }
    }
protected function _cleanupCustomFields ( $ oArticle ) { $ sIcon = $ oArticle -> oxarticles__oxicon -> value ; $ sThumb = $ oArticle -> oxarticles__oxthumb -> value ; if ( $ sIcon == "nopic.jpg" ) { $ oArticle -> oxarticles__oxicon = new \ OxidEsales \ Eshop \ Core \ Field ( ) ; } if ( $ sThumb == "nopic.jpg" ) { $ oArticle -> oxarticles__oxthumb = new \ OxidEsales \ Eshop \ Core \ Field ( ) ; } }
Cleans up article custom fields oxicon and oxthumb. If there is custom
icon or thumb picture, leaves records untouched.

@param \OxidEsales\Eshop\Application\Model\Article $oArticle article object
Cleans up article custom fields oxicon and oxthumb . If there is custom icon or thumb picture leaves records untouched .