fix bug delete schedule
This commit is contained in:
parent
ad885eacd2
commit
fbb8a80da8
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user