diff --git a/frontend/app/work_packages/controllers/work-package-details-controller.js b/frontend/app/work_packages/controllers/work-package-details-controller.js index 630596357e..52070adf47 100644 --- a/frontend/app/work_packages/controllers/work-package-details-controller.js +++ b/frontend/app/work_packages/controllers/work-package-details-controller.js @@ -64,9 +64,13 @@ module.exports = function($scope, .then(function(workPackage) { setWorkPackageScopeProperties(workPackage); WorkPackageService.loadWorkPackageForm(workPackage).then(function() { - if (callback) { - callback(workPackage); - } + return workPackage.links.schema.fetch().then(function(response) { + workPackage.schema = response; + if (callback) { + callback(workPackage); + } + }); + }); }); }