diff --git a/models/MoleTask.php b/models/MoleTask.php index 2a50181..2dcafc8 100644 --- a/models/MoleTask.php +++ b/models/MoleTask.php @@ -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(); }