admin: add message on claim state change and assignee change
This commit is contained in:
parent
e45a674937
commit
83b7df7e69
2 changed files with 38 additions and 12 deletions
|
@ -1150,6 +1150,8 @@ angular.module("FICApp")
|
|||
|
||||
$scope.changeState = function(state) {
|
||||
this.claim.state = state;
|
||||
if ((state == "in-progress" || state == "invalid") && this.claim.id_assignee)
|
||||
this.claim.id_assignee = $scope.whoami;
|
||||
if (this.claim.id)
|
||||
this.saveClaim(state == "invalid" || state == "closed");
|
||||
}
|
||||
|
@ -1184,6 +1186,7 @@ angular.module("FICApp")
|
|||
});
|
||||
}
|
||||
$scope.saveClaim = function(backToList) {
|
||||
this.claim.whoami = $scope.whoami;
|
||||
if (this.claim.id_team) {
|
||||
this.claim.id_team = parseInt(this.claim.id_team, 10);
|
||||
} else {
|
||||
|
|
Reference in a new issue