Fixes and TODO
This commit is contained in:
parent
702a1e7d46
commit
c7ae8e0f3f
@ -14,3 +14,4 @@ ### TODO
|
|||||||
* Maintenance Relations
|
* Maintenance Relations
|
||||||
* Shippable servers in maintenance
|
* Shippable servers in maintenance
|
||||||
* Zakazníci
|
* Zakazníci
|
||||||
|
* Možnost comentáže pokud skipneš host/task require comment
|
||||||
|
@ -45,7 +45,7 @@ public function handle(): void
|
|||||||
'host_id' => $host->id
|
'host_id' => $host->id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$tasks = $maintenance->tasks;
|
$tasks = $maintenance->hosts->find($host->id)->tasks;
|
||||||
foreach ($tasks as $key => $task) {
|
foreach ($tasks as $key => $task) {
|
||||||
$maintenancePlannedHost->historyTasks()->create([
|
$maintenancePlannedHost->historyTasks()->create([
|
||||||
'maintenance_task_id' => $task->id,
|
'maintenance_task_id' => $task->id,
|
||||||
|
Loading…
Reference in New Issue
Block a user