Fixed current form tracker for reset all

This commit is contained in:
Ken Hoes
2016-11-18 11:43:15 -05:00
parent ba6ab6f746
commit 3154549938

View File

@@ -354,7 +354,7 @@ export default [
ConfigurationService.resetAll() ConfigurationService.resetAll()
.then(function() { .then(function() {
populateFromApi(); populateFromApi();
$scope[formTracker.currentFormName].$setPristine(); $scope[formTracker.currentFormName()].$setPristine();
}) })
.catch(function(error) { .catch(function(error) {
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()], ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],