3
0
Fork 0
This commit is contained in:
Александр Рыбкин 2021-04-26 17:11:57 +03:00
parent 6913fbf534
commit 19444853cf
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class MoleTask extends \yii\db\ActiveRecord
$model->period = $period;
$model->dateAdd = $dateAdd ?: date('Y-m-d H:i:s');
$model->project = $project ?: Yii::$app->getModule('cron')->project;
$model->type = $model->project . '.' . $model->controller; // для совместимости
$model->type = stripos($model->controller, '.') ? $model->controller : ($model->project . '.' . $model->controller); // для совместимости
return $model->save();
}