From e17b36b0c79ccc99c8fe00003f6dbe62fa387652 Mon Sep 17 00:00:00 2001 From: HENRY Florian Date: Fri, 13 Jun 2025 16:13:02 +0200 Subject: [PATCH] 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 --- htdocs/ai/admin/custom_prompt.php | 1 + htdocs/core/class/html.formmail.class.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htdocs/ai/admin/custom_prompt.php b/htdocs/ai/admin/custom_prompt.php index 803f718c5bd..e99e4709987 100644 --- a/htdocs/ai/admin/custom_prompt.php +++ b/htdocs/ai/admin/custom_prompt.php @@ -406,6 +406,7 @@ if ($action == 'edit' || $action == 'create' || $action == 'deleteproperty') { $showlinktoailabel = $langs->trans("ToTest"); $htmlname = $confkey; $onlyenhancements = $confkey; + $showlinktolayout = 0; // Fill $out include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php'; diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 9bd459c5f35..9e3c84fb24d 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -1102,10 +1102,12 @@ class FormMail extends Form $showlinktoailabel = $langs->trans("AIEnhancements"); $formatforouput = ''; $htmlname = 'message'; + $formai->substit = $this->substit; $formai->substit_lines = $this->substit_lines; // Fill $out + $db = $this->db; include DOL_DOCUMENT_ROOT.'/core/tpl/formlayoutai.tpl.php'; $out .= '';