From a77293e0b241832932dd9719b9765e6f92e20ae7 Mon Sep 17 00:00:00 2001 From: tanshu Date: Fri, 10 Feb 2017 13:33:40 +0530 Subject: [PATCH] Fix: Would not navigate as the search was referencing unresolved variables. --- brewman/static/app/product-ledger/product-ledger.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/static/app/product-ledger/product-ledger.controller.js b/brewman/static/app/product-ledger/product-ledger.controller.js index 8d1296cc..718e2d81 100644 --- a/brewman/static/app/product-ledger/product-ledger.controller.js +++ b/brewman/static/app/product-ledger/product-ledger.controller.js @@ -25,7 +25,7 @@ var ProductLedgerController = ['$scope', '$routeParams', '$location', 'asDateFil $scope.info = data; }); } else { - $location.path('/ProductLedger/' + $scope.info.Product.ProductID).search('StartDate', startDate).search('FinishDate', finishDate); + $location.path('/ProductLedger/' + $scope.info.Product.ProductID).search('StartDate', $scope.info.StartDate).search('FinishDate', $scope.info.FinishDate); } }; $scope.downloadTable = function () {