diff --git a/controllers/ScheduleController.php b/controllers/ScheduleController.php index 068200ce..f0906473 100644 --- a/controllers/ScheduleController.php +++ b/controllers/ScheduleController.php @@ -144,7 +144,7 @@ class ScheduleController extends Controller { if (Yii::$app->request->post()) { $lists = Yii::$app->request->post("lists"); Schedule::deleteAll(["IN", "id", $lists]); - \app\models\Staff::updateAll(["schedule_id" => 0, ["IN", "id", $lists]]); + \app\models\Staff::updateAll(["schedule_id" => 0], ["IN", "id", $lists]); } } diff --git a/views/schedule/index.tpl b/views/schedule/index.tpl index edb7e556..022adb76 100644 --- a/views/schedule/index.tpl +++ b/views/schedule/index.tpl @@ -38,7 +38,7 @@ 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'], - 'value' => \app\helpers\CommonGrid::checkbox("schedule") + 'value' => \app\helpers\CommonGrid::checkbox("schedule", false) ], 'name', 'description',