diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index e395166fd1d..8ab549c3690 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -4,6 +4,7 @@ * Copyright (C) 2019-2022 Frédéric France * Copyright (C) 2021 Juanjo Menent * Copyright (C) 2021 Alexandre Spangaro + * Copyright (C) 2023 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -650,6 +651,16 @@ class FormTicket print ''; } } + + if ($subelement != 'contract') { + if (isModEnabled('contract') && !$this->ispublic) { + $formcontract = new FormContract($this->db); + print ''; + print img_picto('', 'contract'); + print $formcontract->select_contract(-1, GETPOST('contactid', 'int'), 'contractid', 0, 1, 1); + print ''; + } + } // Other attributes $parameters = array();