mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
deleting attachments when master / sub task is deleted
This commit is contained in:
1 parent
17ed7616ee
commit
f35cd29071
4 files changed
+59
-3
No files matched your search
@@ -117,7 +117,7 @@ class MasterTaskController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$mastertask->attachments()->delete();
|
||||
$mastertask->deleteAttachments();
|
||||
|
||||
foreach ( $mastertask->subtasks as $subtask ) {
|
||||
$subtask->timeblocks()->delete();
|
||||
|
||||
Reference in new issue
Block a user