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