From 5470c1e64ecd943a87b22e3240a96855e7ea9575 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Apr 2023 16:02:50 +0200 Subject: [PATCH] Fix duplicate textarea --- htdocs/admin/mails_templates.php | 6 +++--- htdocs/langs/en_US/admin.lang | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index c71afe928ae..e940a3c6a41 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -803,9 +803,9 @@ if ($action == 'create') { print ""; // Show fields for topic, join files and body - $fieldsforcontent = array('topic', 'joinfiles', 'defaultfortype', 'content'); + $fieldsforcontent = array('topic', 'joinfiles', 'content'); if (!empty($conf->global->MAIN_EMAIL_TEMPLATES_FOR_OBJECT_LINES)) { - $fieldsforcontent = array('topic', 'joinfiles', 'defaultfortype', 'content', 'content_lines'); + $fieldsforcontent = array('topic', 'joinfiles', 'content', 'content_lines'); } foreach ($fieldsforcontent as $tmpfieldlist) { print ''; @@ -1068,7 +1068,7 @@ if ($num) { // Show value for field if ($showfield) { // Show line for topic, joinfiles and content - print ''; + print ''; print ''; if ($tmpfieldlist == 'topic') { print ''.$form->textwithpicto($langs->trans("Topic"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist).' '; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 19fcff2304f..051c0462851 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -530,7 +530,7 @@ WatermarkOnDraftExpenseReports=Watermark on draft expense reports ProjectIsRequiredOnExpenseReports=The project is mandatory for entering an expense report PrefillExpenseReportDatesWithCurrentMonth=Pre-fill start and end dates of new expense report with start and end dates of the current month ForceExpenseReportsLineAmountsIncludingTaxesOnly=Force the entry of expense report amounts always in amount with taxes -AttachMainDocByDefault=Set this to 1 if you want to attach main document to email by default (if applicable) +AttachMainDocByDefault=Set this to Yes if you want to attach by default the main document to the email (if applicable) FilesAttachedToEmail=Attach file SendEmailsReminders=Send agenda reminders by emails davDescription=Setup a WebDAV server