Skip to content

Commit

Permalink
pb with duration in solution
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 committed Aug 7, 2018
1 parent 432be64 commit 0976258
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/solution.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ static function preUpdateSolution(ITILSolution $solution) {
}
$ticket = new Ticket();
$tickets_id = $solution->input['items_id'];
if ($ticket->getFromDBByCrit(['itemtype' => 'Ticket',
'items_id' => $tickets_id])) {
if ($ticket->getFromDB($tickets_id)) {
if ($ticket->getField('actiontime') == 0) {
$ticket->update(['id' => $tickets_id,
'actiontime' => $solution->input['duration_solution']]);
Expand Down

0 comments on commit 0976258

Please sign in to comment.