Fix phpunit

This commit is contained in:
Laurent Destailleur
2024-02-18 23:23:01 +01:00
parent 9e804495fd
commit 778e7364e6

View File

@@ -1047,7 +1047,7 @@ class FormMail extends Form
if ($this->withfckeditor) {
$out .= $this->getModelEmailTemplate();
}
if (isModEnabled('ai')) {
if ($this->withaiprompt && isModEnabled('ai')) {
$out .= $this->getSectionForAIPrompt();
}
$out .= '</td>';
@@ -1438,7 +1438,7 @@ class FormMail extends Form
*
* @return string Text for instructions
*/
public function getSectionforAIPrompt()
public function getSectionForAIPrompt()
{
global $langs;