|
|
@@ -145,13 +145,16 @@ class BxBaseFormAccount extends BxTemplFormView
|
|
|
$sPwd ? array (self::$FIELD_PASSWORD => $sPasswordHash, self::$FIELD_SALT => $sSalt) : array()
|
|
|
);
|
|
|
|
|
|
- $oAccount = BxDolAccount::getInstance($val);
|
|
|
- if ($oAccount) {
|
|
|
- $aAccountInfo = $oAccount->getInfo();
|
|
|
- bx_alert('account', 'change_receive_news', 0, false, array('account_id' => $val,'old_value' => $aAccountInfo['receive_news'],'new_value' => $this->getCleanValue('receive_news'),'email' => $aAccountInfo['email']));
|
|
|
+ $bResult = parent::update ($val, $aValsToAdd, $aTrackTextFieldsChanges);
|
|
|
+
|
|
|
+ if ($bResult){
|
|
|
+ $oAccount = BxDolAccount::getInstance($val);
|
|
|
+ if ($oAccount) {
|
|
|
+ $aAccountInfo = $oAccount->getInfo();
|
|
|
+ bx_alert('account', 'change_receive_news', 0, false, array('account_id' => $val, 'old_value' => $aAccountInfo['receive_news'], 'new_value' => $this->getCleanValue('receive_news'), 'email' => $aAccountInfo['email']));
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- return parent::update ($val, $aValsToAdd, $aTrackTextFieldsChanges);
|
|
|
+ return $bResult;
|
|
|
}
|
|
|
|
|
|
protected function genCustomInputAgreement ($aInput)
|