mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
no message
This commit is contained in:
1 parent
38fb8afd11
commit
47a521a83d
2 files changed
+8
-9
No files matched your search
@@ -65,6 +65,9 @@ class SubTask extends Model
|
||||
|
||||
public function syncTimeblocks(Array $timeblocks)
|
||||
{
|
||||
if (empty($timeblocks)) {
|
||||
return $this->timeblocks()->delete();
|
||||
}
|
||||
// pripravenie array na upsert
|
||||
$timeblocks = array_map(function($item) {
|
||||
$item['sub_task_id'] = $this->id;
|
||||
|
||||
Reference in new issue
Block a user