2
0
forked from Wavyzz/dolibarr

Update html.formmail.class.php

This commit is contained in:
Laurent Destailleur
2021-02-26 10:31:02 +01:00
committed by GitHub
parent 69c974800c
commit e0785ac5ef

View File

@@ -455,7 +455,7 @@ class FormMail extends Form
// Zone to select email template
if (count($modelmail_array) > 0)
{
$model_mail_selected_id = GETPOSTISSET('modelmailselected') ? GETPOST('modelmailselected', 'int') : (($arraydefaultmessage->id) ? $arraydefaultmessage->id : 0);
$model_mail_selected_id = GETPOSTISSET('modelmailselected') ? GETPOST('modelmailselected', 'int') : ($arraydefaultmessage->id > 0 ? $arraydefaultmessage->id : 0);
// If list of template is filled
$out .= '<div class="center" style="padding: 0px 0 12px 0">'."\n";