RomanL 8 лет назад
Родитель
Сommit
9f95c6df70
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      template/scripts/BxBaseFormAccount.php

+ 7 - 0
template/scripts/BxBaseFormAccount.php

@@ -144,6 +144,13 @@ class BxBaseFormAccount extends BxTemplFormView
             array (self::$FIELD_CHANGED => time()),
             $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']));
+        }
+
         return parent::update ($val, $aValsToAdd, $aTrackTextFieldsChanges);
     }