|
|
@ -146,7 +146,10 @@ export class WorkPackageEditFormController { |
|
|
|
|
|
|
|
|
|
|
|
this.workPackage.save() |
|
|
|
this.workPackage.save() |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
angular.forEach(this.fields, (field:WorkPackageEditFieldController) => field.setErrors([])); |
|
|
|
angular.forEach(this.fields, (field:WorkPackageEditFieldController) => { |
|
|
|
|
|
|
|
field.setErrors([]); |
|
|
|
|
|
|
|
field.deactivate(); |
|
|
|
|
|
|
|
}); |
|
|
|
deferred.resolve(this.workPackage); |
|
|
|
deferred.resolve(this.workPackage); |
|
|
|
|
|
|
|
|
|
|
|
this.wpNotificationsService.showSave(this.workPackage, isInitial); |
|
|
|
this.wpNotificationsService.showSave(this.workPackage, isInitial); |
|
|
|