fix wrong request-parameter reading for table-column mangement

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-02-17 19:32:27 +01:00
parent a3486cc5b3
commit 5ba28ef599

View File

@@ -241,7 +241,7 @@ class Ajax
$columns[] = $value;
}
if (!empty($columns)) {
$columns = Listing::storeColumnListingForUser([Request::post('listing') => $columns]);
$columns = Listing::storeColumnListingForUser([Request::get('listing') => $columns]);
return $this->jsonResponse($columns);
}
return $this->errorResponse('At least one column must be selected', 406);
@@ -249,7 +249,7 @@ class Ajax
private function resetTablelisting()
{
Listing::deleteColumnListingForUser([Request::post('listing') => []]);
Listing::deleteColumnListingForUser([Request::get('listing') => []]);
return $this->jsonResponse([]);
}