Applied new selectlist search to locations

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2020-04-22 06:39:41 -07:00
parent fa5134603f
commit b725e788ec
2 changed files with 33 additions and 51 deletions
@@ -131,10 +131,6 @@ class LocationsController extends Controller
return redirect()->route('locations.index')->with('error', trans('admin/locations/message.does_not_exist'));
}
if ($request->input('parent_id') == $locationId) {
return redirect()->back()->withInput()->with('error', 'A location cannot be its own parent. Please select a different parent location.');
}
// Update the location data
$location->name = $request->input('name');