Civi::queue() - Tweak prioritization of fields per discussion
authorTim Otten <totten@civicrm.org>
Wed, 2 Feb 2022 10:56:19 +0000 (02:56 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 2 Feb 2022 10:56:41 +0000 (02:56 -0800)
Civi.php

index dfd8d9004b0e7bd501b58a907d8dfb9036ac4031..3c9d71f929859835f0d6b1f0d94552c240d5d84a 100644 (file)
--- a/Civi.php
+++ b/Civi.php
@@ -124,7 +124,7 @@ class Civi {
    */
   public static function queue(string $name, array $params = []): CRM_Queue_Queue {
     $defaults = ['reset' => FALSE, 'is_persistent' => TRUE];
-    $params = array_merge($defaults, ['name' => $name], $params);
+    $params = array_merge($defaults, $params, ['name' => $name]);
     return CRM_Queue_Service::singleton()->create($params);
   }