Aggiunto ordinamento alfabetico per pulsanti d'invio mail
This commit is contained in:
parent
9eaa601732
commit
fbbbe81d19
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue