From f44f9df86da57fdac11268a44ae806222869ce67 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 23 Jun 2021 16:18:16 +1200 Subject: [PATCH] Fix sorting for drop triggers I added a ksort but it should have been an asort - the createTriggers has an array like ['civicrm_acl'] => [.....] which suits asort but in this location the array is [0 => 'civicrm_acl', 1 =>..... so asort is right --- CRM/Logging/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Logging/Schema.php b/CRM/Logging/Schema.php index dce95fa5b5..85bd657a62 100644 --- a/CRM/Logging/Schema.php +++ b/CRM/Logging/Schema.php @@ -240,7 +240,7 @@ AND (TABLE_NAME LIKE 'log_civicrm_%' $nonStandardTableNameString ) // Sort the table names so the sql output is consistent for those sites // loading it asynchronously (using the setting 'logging_no_trigger_permission') - ksort($tableNames); + asort($tableNames); foreach ($tableNames as $table) { $validName = CRM_Core_DAO::shortenSQLName($table, 48, TRUE); -- 2.25.1