Force a null order when empty in the post request

This commit is contained in:
Djamil Legato
2018-06-01 10:03:40 -07:00
parent 10bf03af84
commit 858badaf35
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
# v1.8.4
## mm/dd/2018
1. [](#bugfix)
* Force a `null` order when empty in the post request
# v1.8.3
## 05/31/2018

View File

@@ -1576,7 +1576,7 @@ class AdminController extends AdminBaseController
{
$this->uri = $this->uri ?: $this->grav['uri'];
$uri = $this->uri->post('uri');
$order = $this->uri->post('order');
$order = $this->uri->post('order') ?: null;
if ($uri) {
/** @var UniformResourceLocator $locator */