dev/core#3737 ensure tasks are loaded
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Jul 2022 09:30:16 +0000 (10:30 +0100)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Jul 2022 09:47:49 +0000 (10:47 +0100)
CRM/Contribute/Task.php

index 2bc1fcf177c13c74e181f5a0327acfaaa566ef5d..52434ccba35f9fed35907f5dc24e4019ccb52432 100644 (file)
@@ -186,6 +186,8 @@ class CRM_Contribute_Task extends CRM_Core_Task {
       $tasks = self::taskTitles();
     }
     else {
+      // See https://lab.civicrm.org/dev/core/-/issues/3737
+      static::tasks();
       $tasks = [
         self::TASK_EXPORT => self::$_tasks[self::TASK_EXPORT]['title'],
         self::TASK_EMAIL => self::$_tasks[self::TASK_EMAIL]['title'],