fix schema not loaded

pull/2703/head
Mihail Maxacov 10 years ago
parent dd934a25b4
commit e6c4623eaf
  1. 4
      frontend/app/work_packages/controllers/work-package-details-controller.js

@ -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

Loading…
Cancel
Save