Debug v17

This commit is contained in:
Laurent Destailleur 2022-11-15 13:09:17 +01:00
parent cacce73d9a
commit 4280b8bc02

View File

@ -339,20 +339,18 @@ class FormTicket
// Subject
if ($this->withtitletopic) {
print '<tr><td><label for="subject"><span class="fieldrequired">'.$langs->trans("Subject").'</span></label></td><td>';
// Answer to a ticket : display of the thread title in readonly
if ($this->withtopicreadonly) {
print $langs->trans('SubjectAnswerToTicket').' '.$this->topic_title;
print '</td></tr>';
} else {
if (isset($this->withreadid) && $this->withreadid > 0) {
if (isset($this->withreadid) && $this->withreadid > 0) {
$subject = $langs->trans('SubjectAnswerToTicket').' '.$this->withreadid.' : '.$this->topic_title.'';
} else {
$subject = GETPOST('subject', 'alpha');
}
print '<input class="text minwidth500" id="subject" name="subject" value="'.$subject.'" autofocus />';
print '</td></tr>';
}
print '</td></tr>';
}
if (!empty($conf->knowledgemanagement->enabled)) {