Skip to content

Commit

Permalink
lable: Fix board label deletion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Nov 14, 2016
1 parent a735115 commit f819469
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/models/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,6 @@ public void delete() {
}
}

for (Label label : labels) {
label.delete(this);
label.update();
}

// Issues must be deleted before issue labels because issues may refer
// issue labels.
Expand All @@ -672,6 +668,11 @@ public void delete() {
posting.delete();
}

for (Label label : labels) {
label.delete(this);
label.update();
}

super.delete();
}

Expand Down

0 comments on commit f819469

Please sign in to comment.