Skip to content

Commit 1e44140

Browse files
authored
Merge pull request #294 from dbarzin/dev
fix unplan control
2 parents 2164e48 + 21d2176 commit 1e44140

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/Http/Controllers/ControlController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,9 @@ public function unplan(Request $request)
11351135
$prev_control->update();
11361136
}
11371137

1138+
// Delete measure_control items
1139+
$control->measures()->detach();
1140+
11381141
// Delete control
11391142
$control->delete();
11401143

0 commit comments

Comments
 (0)