Update create_ticket.php
This commit is contained in:
parent
589df5e63d
commit
634348d048
@ -148,9 +148,8 @@ if (empty($reshook) && $action == 'create_ticket' && GETPOST('save', 'alpha')) {
|
|||||||
// Ensure that contact is active and select first active contact
|
// Ensure that contact is active and select first active contact
|
||||||
$cid = 0;
|
$cid = 0;
|
||||||
foreach ($contacts as $key => $contact) {
|
foreach ($contacts as $key => $contact) {
|
||||||
if ($contact->statut !== "1") {
|
if ((int) $contact->statut == 1) {
|
||||||
$cid = $key + 1;
|
$cid = $key;
|
||||||
} else {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user