fix schema not loaded

pull/2703/head
Mihail Maxacov 10 years ago
parent dd934a25b4
commit e6c4623eaf
  1. 10
      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);
}
});
});
});
}

Loading…
Cancel
Save