Make sure :sorting parameter is nested inside the :q parameter to fix sorting of admin products

Fixes #6105.
This commit is contained in:
Cillian O'Ruanaidh
2020-10-16 15:21:15 +01:00
parent 22bd0f3a52
commit 35110eaf4a

View File

@@ -104,7 +104,7 @@ angular.module("ofn.admin").controller "AdminProductEditCtrl", ($scope, $timeout
$scope.$watch 'sortOptions', (sort) ->
return unless sort && sort.predicate != ""
$scope.sorting = sort.getSortingExpr()
$scope.q.sorting = sort.getSortingExpr()
$scope.fetchProducts()
, true