source/Application/Controller/Admin/UserAddress.php
public function save()
    {
        parent::save();

        if ($this->_allowAdminEdit($this->getEditObjectId())) {
            $aParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editval");
            $oAdress = oxNew(\OxidEsales\Eshop\Application\Model\Address::class);
            if (isset($aParams['oxaddress__oxid']) && $aParams['oxaddress__oxid'] == "-1") {
                $aParams['oxaddress__oxid'] = null;
            } else {
                $oAdress->load($aParams['oxaddress__oxid']);
            }

            $oAdress->assign($aParams);
            $oAdress->save();

            $this->sSavedOxid = $oAdress->getId();
        }
    }
public function save()
    {
        parent::save();

        if ($this->_allowAdminEdit($this->getEditObjectId())) {
            $aParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editval");
            $oAdress = oxNew(\OxidEsales\Eshop\Application\Model\Address::class);
            if (isset($aParams['oxaddress__oxid']) && $aParams['oxaddress__oxid'] == "-1") {
                $aParams['oxaddress__oxid'] = null;
            } else {
                $oAdress->load($aParams['oxaddress__oxid']);
            }

            $oAdress->assign($aParams);
            $oAdress->save();

            $this->sSavedOxid = $oAdress->getId();
        }
    }
public function save ( ) { parent :: save ( ) ; if ( $ this -> _allowAdminEdit ( $ this -> getEditObjectId ( ) ) ) { $ aParams = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "editval" ) ; $ oAdress = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Address :: class ) ; if ( isset ( $ aParams [ 'oxaddress__oxid' ] ) && $ aParams [ 'oxaddress__oxid' ] == "-1" ) { $ aParams [ 'oxaddress__oxid' ] = null ; } else { $ oAdress -> load ( $ aParams [ 'oxaddress__oxid' ] ) ; } $ oAdress -> assign ( $ aParams ) ; $ oAdress -> save ( ) ; $ this -> sSavedOxid = $ oAdress -> getId ( ) ; } }
Saves user addressing information.
Saves user addressing information .