Merge branch 'add_minutes' of https://github.com/q6q9/guild into add_minutes

This commit is contained in:
andrey
2021-11-23 16:16:09 +03:00
11 changed files with 56 additions and 8 deletions

View File

@ -102,6 +102,7 @@ class Reports extends \yii\db\ActiveRecord
$taskModel->report_id = $this->id;
$taskModel->task = $task['task'];
$taskModel->hours_spent = (float)$task['hours_spent'];
$taskModel->minutes_spent = (int) $task['minutes_spent'];
$taskModel->status = 1;
$taskModel->created_at = time();
$taskModel->save();