Aggiunto ordinamento alfabetico per pulsanti d'invio mail

This commit is contained in:
MatteoPistorello 2022-08-04 12:23:05 +02:00
parent 9eaa601732
commit fbbbe81d19
1 changed files with 2 additions and 2 deletions

View File

@ -118,9 +118,9 @@ class ButtonManager implements ManagerInterface
if ($options['type'] == 'print') {
$results = \Prints::getModulePrints($options['id_module']);
} elseif ($options['type'] == 'email') {
$results = TemplateEmail::where('id_module', $options['id_module'])->get()->toArray();
$results = TemplateEmail::where('id_module', $options['id_module'])->orderBy('name')->get()->toArray();
} elseif ($options['type'] == 'sms') {
$results = TemplateSMS::where('id_module', $options['id_module'])->get()->toArray();
$results = TemplateSMS::where('id_module', $options['id_module'])->orderBy('name')->get()->toArray();
}
return $results;