- Отредактирован метод изменения значения поля

parent a2138aa3
......@@ -646,7 +646,9 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
if ($exists===true && $count==1) {
$init = $trigger->initAction($params);
if ($init===true) {
User::updateAttributes(['delivery_date' => $date->format('Y-m-d')]);
$user=User::findOne($this->id);
$user->delivery_date = $date->format('Y-m-d');
$user->save(false);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/rechecktriggers'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment