From 19444853cff8cd7141273ce982641e1f409573b7 Mon Sep 17 00:00:00 2001 From: Sasha Rybkin Date: Mon, 26 Apr 2021 17:11:57 +0300 Subject: [PATCH] fix --- models/MoleTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }