liyinglin 2 years ago
parent 1a5c80fb3d
commit cbf511db5b

@ -330,7 +330,7 @@ class ProjectController extends CommonController
$form->modify("project_id", "select", [
"choices" => (new Project())->where(function ($query) use ($project_ids) {
if ($project_ids) {
$query->whereIn("project_id", $project_ids);
$query->whereIn("id", $project_ids);
}
})->get()->pluck("name", "id")->toArray()
]);

Loading…
Cancel
Save