Merge pull request #116 from finnlabs/hotfix/handle_missing_summarized_cost_entries

Handle missing summarized cost entries
pull/6827/head
kgalli 10 years ago
commit c06303df29
  1. 4
      app/assets/javascripts/angular/openproject-costs-app.js

@ -35,7 +35,9 @@ openprojectCostsApp.run(['HookService', function(HookService) {
switch (params.type) {
case "spentUnits":
if (params.workPackage.embedded.summarizedCostEntries.length > 0) {
var summarizedCostEntries = params.workPackage.embedded.summarizedCostEntries;
if (summarizedCostEntries && summarizedCostEntries.length > 0) {
directive = "summarized-cost-entries";
}
break;

Loading…
Cancel
Save