diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php index bee8358e5aa..73efc14a038 100644 --- a/htdocs/ticket/contact.php +++ b/htdocs/ticket/contact.php @@ -146,7 +146,7 @@ if ($id > 0 || !empty($track_id) || !empty($ref)) { print dol_get_fiche_end(); } - if (!$user->socid && $conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY) { + if (!$user->socid && !empty($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY)) { $object->next_prev_filter = "te.fk_user_assign = '".$user->id."'"; } elseif ($user->socid > 0) { $object->next_prev_filter = "te.fk_soc = '".$user->socid."'";