Parcourir la source

Better handling of affiliation change submission.

Paulo Reis il y a 8 ans
Parent
commit
67e2f6f942

+ 5 - 2
services/web/public/coffee/main/affiliations/controllers/UserAffiliationsController.coffee

@@ -63,8 +63,11 @@ define [
 					$scope.affiliationToChange.role,
 					$scope.affiliationToChange.department
 				)
-				.then () -> _getUserEmails()
-				.catch () -> $scope.ui.hasError = true
+				.then () ->
+					_reset()
+					_getUserEmails()
+				.catch () ->
+					$scope.ui.hasError = true
 
 		$scope.cancelAffiliationChange = (email) ->
 			$scope.affiliationToChange.email = ""