Merge pull request #27830 from frederic34/patch-3

fix tests
This commit is contained in:
Laurent Destailleur 2024-01-28 12:45:20 +01:00 committed by GitHub
commit f37657f72b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -889,7 +889,7 @@ class FormMail extends Form
//input prompt AI
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
if (isModEnabled('ai') && getDolGlobalConst('AI_CHATGPT_API_KEY')) {
if (isModEnabled('ai') && getDolGlobalString('AI_CHATGPT_API_KEY')) {
$out .= $this->getHtmlForInstruction();
}
// Message