mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Event Reminder : Add "Default Mail Model" to select Mail Model
This commit is contained in:
@@ -7979,7 +7979,7 @@ class Form
|
||||
* @param string $modelType Model type
|
||||
* @return string HTML select string
|
||||
*/
|
||||
public function selectModelMail($prefix, $modelType = '')
|
||||
public function selectModelMail($prefix, $modelType = '', $default = 0)
|
||||
{
|
||||
global $langs, $db, $user;
|
||||
|
||||
@@ -7992,6 +7992,7 @@ class Form
|
||||
$result = $formmail->fetchAllEMailTemplate($modelType, $user, $langs);
|
||||
|
||||
if ($result > 0) {
|
||||
if($default) $TModels[0] = $langs->trans('DefaultMailModel');
|
||||
foreach ($formmail->lines_model as $model){
|
||||
$TModels[$model->id] = $model->label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user