fix: warning Form IA and settings (#34426)

* fix: warning Form IA and settings

* fix: warning Form IA and settings

* Update html.formmail.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
HENRY Florian
2025-06-13 16:13:02 +02:00
committed by GitHub
parent 2c38daa86a
commit e17b36b0c7
2 changed files with 3 additions and 0 deletions

View File

@@ -406,6 +406,7 @@ if ($action == 'edit' || $action == 'create' || $action == 'deleteproperty') {
$showlinktoailabel = $langs->trans("ToTest"); $showlinktoailabel = $langs->trans("ToTest");
$htmlname = $confkey; $htmlname = $confkey;
$onlyenhancements = $confkey; $onlyenhancements = $confkey;
$showlinktolayout = 0;
// Fill $out // Fill $out
include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php'; include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php';

View File

@@ -1102,10 +1102,12 @@ class FormMail extends Form
$showlinktoailabel = $langs->trans("AIEnhancements"); $showlinktoailabel = $langs->trans("AIEnhancements");
$formatforouput = ''; $formatforouput = '';
$htmlname = 'message'; $htmlname = 'message';
$formai->substit = $this->substit; $formai->substit = $this->substit;
$formai->substit_lines = $this->substit_lines; $formai->substit_lines = $this->substit_lines;
// Fill $out // Fill $out
$db = $this->db;
include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php'; include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php';
$out .= '</td>'; $out .= '</td>';