rename query filter where it was missed, fix bulk_update_product spec

This commit is contained in:
Gaetan Riou
2020-08-21 11:46:36 +10:00
parent 44487af2c8
commit f71013c514
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ angular.module("ofn.admin").controller "AdminProductEditCtrl", ($scope, $timeout
$scope.q = ProductFiltersService.loadFromUrl($location.search())
$scope.fetchProducts()
$scope.$watchCollection '[query, producerFilter, categoryFilter, importDateFilter, per_page]', ->
$scope.$watchCollection '[q.query, q.producerFilter, q.categoryFilter, q.importDateFilter, per_page]', ->
$scope.page = 1 # Reset page when changing filters for new search
$scope.changePage = (newPage) ->