Ability to remove user location from users

Rework of #9677 - sorry @godmartinez - I suck :(

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-03-21 23:03:57 -07:00
parent 418ce75a9f
commit e08327be95
4 changed files with 17 additions and 2 deletions
@@ -123,6 +123,11 @@ class BulkUsersController extends Controller
'warning' => trans('admin/users/message.bulk_manager_warn'),
];
}
if ($request->input('null_location_id')=='1') {
$this->update_array['location_id'] = null;
}
if (! $manager_conflict) {
$this->conditionallyAddItem('manager_id');
}