Closed hielfx closed 8 years ago
Fixed Curriculum by modifiying the $q.all for curriculum:
$scope.curriculums = Curriculum.query({filter: 'curriculum-is-null'});
$q.all([$scope.naturalPerson.$promise, $scope.curriculums.$promise]).then(function () {
if (!$scope.naturalPerson.curriculum || !$scope.naturalPerson.curriculum.id) {
return $q.reject();
}
return Curriculum.get({id: $scope.naturalPerson.curriculum.id}).$promise;
}).then(function (curriculum) {
$scope.curriculums.push(curriculum);
});
Fixed Gender by adding the GenderResource with the Search method. Added the gender javascripts to the index.html
When trying to edit a NaturalPerson, the Curriculum and Gender are generated in the $scope by fetching alland filtering in the view as a