mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 12:24:36 -04:00
Handle nothing being passed into sort() filter
This commit is contained in:
parent
4242805e5c
commit
0c4a691592
@ -185,7 +185,7 @@ class InvoiceFilters extends QueryFilters
|
|||||||
* @param string sort formatted as column|asc
|
* @param string sort formatted as column|asc
|
||||||
* @return Builder
|
* @return Builder
|
||||||
*/
|
*/
|
||||||
public function sort(string $sort) : Builder
|
public function sort(string $sort = '') : Builder
|
||||||
{
|
{
|
||||||
$sort_col = explode('|', $sort);
|
$sort_col = explode('|', $sort);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user