Skip to content

Commit

Permalink
[Hook] fix: id is not always defined in tickets’ calling
Browse files Browse the repository at this point in the history
Fix by altairis-noe on doliproject
  • Loading branch information
nicolas-eoxia committed Oct 7, 2022
1 parent a1c632a commit d3442bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/actions_dolisirh.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public function printCommonFooter(array $parameters)
$task = new Task($this->db);
$ticket = new Ticket($this->db);

$ticket->fetch(GETPOST('id'));
$ticket->fetch(!empty(GETPOST('id')) ? (GETPOST('id')) : '', !empty(GETPOST('ref')) ? GETPOST('ref') : '', !empty(GETPOST('track_id')) ? GETPOST('track_id') : '');
$ticket->fetch_optionals();

$task_id = $ticket->array_options['options_fk_task'];
Expand Down

0 comments on commit d3442bd

Please sign in to comment.