From 60d2b8ec1144f7df87d5333c80b366dee26dce62 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 7 Jun 2021 01:06:31 -0400 Subject: [PATCH] Fix standalone export classes This fixes an 'access denied' error on standalone export forms, caused by renaming the php classes. Fixes dev/report#67 --- CRM/Export/Controller/Standalone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Export/Controller/Standalone.php b/CRM/Export/Controller/Standalone.php index aa954ee0e6..4e38d4a9d4 100644 --- a/CRM/Export/Controller/Standalone.php +++ b/CRM/Export/Controller/Standalone.php @@ -72,7 +72,7 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller { $className = 'CRM_' . $this->getComponent($this->get('entity')) . '_Task'; foreach ($className::tasks() as $taskId => $task) { $taskForm = (array) $task['class']; - if (strpos($taskForm[0], 'CRM_Export_Form_Select') === 0) { + if (strpos($taskForm[0], '_Export_Form_Select') !== FALSE) { $values['task'] = $taskId; } } -- 2.25.1