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()) {
|
if (Yii::$app->request->post()) {
|
||||||
$lists = Yii::$app->request->post("lists");
|
$lists = Yii::$app->request->post("lists");
|
||||||
Schedule::deleteAll(["IN", "id", $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',
|
'format' => 'raw',
|
||||||
'contentOptions' => ['class' => 'text-center'],
|
'contentOptions' => ['class' => 'text-center'],
|
||||||
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
|
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
|
||||||
'value' => \app\helpers\CommonGrid::checkbox("schedule")
|
'value' => \app\helpers\CommonGrid::checkbox("schedule", false)
|
||||||
],
|
],
|
||||||
'name',
|
'name',
|
||||||
'description',
|
'description',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user