Update create_ticket.php

This commit is contained in:
Laurent Destailleur 2022-11-02 01:10:17 +01:00 committed by GitHub
parent 414b183ead
commit 870ffb6dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ if (empty($reshook) && $action == 'create_ticket' && GETPOST('save', 'alpha')) {
$object->fk_soc = $searched_companies[0]->id;
}
if (is_array($contacts) and count($contacts) > 0) {
if (is_array($contacts) && count($contacts) > 0) {
$object->fk_soc = $contacts[$cid]->socid;
$usertoassign = $contacts[$cid]->id;
}