mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sort alert transport by name (#14464)
* sort alert transport by name * . * . * code update * code update
This commit is contained in:
@ -31,7 +31,7 @@ if (Auth::user()->hasGlobalAdmin()) {
|
||||
<?php
|
||||
|
||||
// Iterate through each alert transport
|
||||
foreach (\App\Models\AlertTransport::all() as $transport) {
|
||||
foreach (\App\Models\AlertTransport::orderBy('transport_name', 'asc')->get() as $transport) {
|
||||
$instance = $transport->instance();
|
||||
echo "<tr id=\"alert-transport-{$transport->transport_id}\">";
|
||||
echo '<td>' . $transport->transport_name . '</td>';
|
||||
|
Reference in New Issue
Block a user