diff --git a/src/controllers/manage/list/appointmentsListViewController.js b/src/controllers/manage/list/appointmentsListViewController.js index 7c54339a9..144d969bd 100644 --- a/src/controllers/manage/list/appointmentsListViewController.js +++ b/src/controllers/manage/list/appointmentsListViewController.js @@ -413,6 +413,7 @@ angular.module('bahmni.appointments') closeConfirmBox(); messagingService.showMessage('info', message); $scope.filteredAppointments = appointmentsFilter($scope.appointments, $stateParams.filterParams); + $state.reload(); }); }; diff --git a/test/controllers/manage/list/appointmentsListViewController.spec.js b/test/controllers/manage/list/appointmentsListViewController.spec.js index 74d8695ee..4f7f33d8e 100644 --- a/test/controllers/manage/list/appointmentsListViewController.spec.js +++ b/test/controllers/manage/list/appointmentsListViewController.spec.js @@ -29,7 +29,7 @@ describe('AppointmentsListViewController', function () { } }; }); - $state = jasmine.createSpyObj('$state', ['go']); + $state = jasmine.createSpyObj('$state', ['go', 'reload']); confirmBox = jasmine.createSpy('confirmBox'); messagingService = jasmine.createSpyObj('messagingService', ['showMessage']); $translate = jasmine.createSpyObj('$translate', ['instant', 'storageKey', 'storage', 'preferredLanguage']);