Skip to content

Commit

Permalink
fix delete action
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jan 28, 2025
1 parent 8558f68 commit 141b8e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/ActionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ public function delete() {
// delete links
DB::table('action_measure')->where('action_id', $action->id)->delete();

// relete links to owners
$action->owners()->detach();

// delete
$action->delete();

Expand Down

0 comments on commit 141b8e3

Please sign in to comment.