fix
This commit is contained in:
parent
6913fbf534
commit
19444853cf
|
@ -134,7 +134,7 @@ class MoleTask extends \yii\db\ActiveRecord
|
||||||
$model->period = $period;
|
$model->period = $period;
|
||||||
$model->dateAdd = $dateAdd ?: date('Y-m-d H:i:s');
|
$model->dateAdd = $dateAdd ?: date('Y-m-d H:i:s');
|
||||||
$model->project = $project ?: Yii::$app->getModule('cron')->project;
|
$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();
|
return $model->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue