Update html.formticket.class.php
This commit is contained in:
parent
311d41a6b3
commit
8539fa5cfa
1 changed files with 11 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2019-2022 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2021 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2021 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
* Copyright (C) 2023 Charlene Benke <charlene.r@patas-monkey.com>
|
||||
*
|
||||
* 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 '</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($subelement != 'contract') {
|
||||
if (isModEnabled('contract') && !$this->ispublic) {
|
||||
$formcontract = new FormContract($this->db);
|
||||
print '<tr><td><label for="contract"><span class="">'.$langs->trans("Contract").'</span></label></td><td>';
|
||||
print img_picto('', 'contract');
|
||||
print $formcontract->select_contract(-1, GETPOST('contactid', 'int'), 'contractid', 0, 1, 1);
|
||||
print '</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Other attributes
|
||||
$parameters = array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue