Skip to content

Commit b90c846

Browse files
committed
cleanup
1 parent 023badd commit b90c846

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/Item_Ola.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -197,31 +197,11 @@ public static function compute(Ticket $ticket, int $olas_id, int $items_olas_id)
197197
(
198198
$ticket->oldvalues['status'] == CommonITILObject::WAITING && !empty($item_ola_data['waiting_start'])
199199
)
200-
// @todoseb cleanup
201-
// from closed or solved to another active status
202-
// || (
203-
// // from solved to another active status
204-
// (
205-
// in_array($ticket->oldvalues["status"], $ticket->getSolvedStatusArray()) // was solved
206-
// && !in_array($ticket->fields["status"], $ticket->getClosedStatusArray()) // but is not closed now
207-
// )
208-
// ||
209-
// // from closed to another active status
210-
// (
211-
// in_array($ticket->oldvalues["status"], $ticket->getClosedStatusArray()) // was closed
212-
// && in_array($ticket->fields["status"], $ticket->getNotSolvedStatusArray()) // not solved
213-
// )
214-
// )
215200
) {
216-
// $waiting_start = $item_ola_data['waiting_start'];
217-
218-
// if (!empty($waiting_start)) {
219201
$item_ola_data['waiting_time'] += $ola->getActiveTimeBetween(
220202
$item_ola_data['waiting_start'],
221203
$_SESSION["glpi_currenttime"]
222204
);
223-
// $item_ola_data['waiting_start'] = null; // 0 ou null ?
224-
// }
225205
$item_ola_data['waiting_start'] = null; // 0 ou null ?
226206
}
227207
}

0 commit comments

Comments
 (0)