mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-27 20:01:26 +01:00
Merge pull request #16449 from daraelmin/daraelmin-patch-3
Fix #16420 undefined $model_mail_selected_id
This commit is contained in:
@@ -488,7 +488,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;
|
||||
$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";
|
||||
|
||||
Reference in New Issue
Block a user