1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-29 09:11:11 +01:00

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

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;