|
|
|
@ -64,10 +64,14 @@ module.exports = function($scope, |
|
|
|
|
.then(function(workPackage) { |
|
|
|
|
setWorkPackageScopeProperties(workPackage); |
|
|
|
|
WorkPackageService.loadWorkPackageForm(workPackage).then(function() { |
|
|
|
|
return workPackage.links.schema.fetch().then(function(response) { |
|
|
|
|
workPackage.schema = response; |
|
|
|
|
if (callback) { |
|
|
|
|
callback(workPackage); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
$scope.refreshWorkPackage = refreshWorkPackage; // expose to child controllers
|
|
|
|
|