This commit is contained in:
Jonatan Rek 2024-09-10 13:31:06 +02:00
parent c7ce9ac177
commit 79cb5ceb19

View File

@ -62,11 +62,13 @@ public function plannedDetailFinishPost(Request $request, MaintenanceHistory $ma
// }
if ($request->has('skippedHostsSummary')) {
foreach ($request->input('skippedHostsSummary') as $history_host_id => $summary) {
$maintenance_history->historyHosts->find($history_host_id)->update([
'summary' => $summary,
]);
}
}
if ($request->has('skippedHostTasksSummary')) {
foreach ($maintenance_history->historyHosts as $history_host) {
@ -145,7 +147,7 @@ public function start(Request $request, MaintenanceHistory $maintenance_history)
}
if ($createPeriode) {
for ($i=0; $i < count($timePeriodes); $i++) {
for ($i = 0; $i < count($timePeriodes); $i++) {
unset($timePeriodes[$i]['every']);
unset($timePeriodes[$i]['month']);
unset($timePeriodes[$i]['dayofweek']);