Merge b262837ef7 into 8f42c3b3e7
This commit is contained in:
commit
0956a65fdb
@ -27,7 +27,9 @@ use function htmlspecialchars;
|
||||
use function in_array;
|
||||
use function mb_strtoupper;
|
||||
use function sprintf;
|
||||
use function strnatcasecmp;
|
||||
use function trim;
|
||||
use function usort;
|
||||
|
||||
/**
|
||||
* Triggers management.
|
||||
@ -182,6 +184,10 @@ final readonly class IndexController implements InvocableController
|
||||
|
||||
if ($item !== null) {
|
||||
$tables = $this->triggers->getTables(Current::$database);
|
||||
if (Config::getInstance()->settings['NaturalOrder']) {
|
||||
usort($tables, strnatcasecmp(...));
|
||||
}
|
||||
|
||||
$editor = $this->template->render('triggers/editor_form', [
|
||||
'db' => Current::$database,
|
||||
'table' => Current::$table,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user