From: Coleman Watts Date: Tue, 21 Nov 2017 01:17:39 +0000 (-0500) Subject: Add comments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f227c593ff9235299144545aac41eafe5a9afae1;p=civicrm-core.git Add comments --- diff --git a/CRM/Export/Controller/Standalone.php b/CRM/Export/Controller/Standalone.php index c2540dcd70..0d3590ab60 100644 --- a/CRM/Export/Controller/Standalone.php +++ b/CRM/Export/Controller/Standalone.php @@ -68,7 +68,8 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller { } /** - * + * Export forms are historically tightly coupled to search forms,so this simulates + * the output of a search form, with an array of checkboxes for each selected entity. * * @param string $pageName * @return array @@ -81,6 +82,7 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller { $values[CRM_Core_Form::CB_PREFIX . $id] = 1; } } + // Set the "task" selector value to Export $className = 'CRM_' . $this->get('entity') . '_Task'; foreach ($className::tasks() as $taskId => $task) { $taskForm = (array) $task['class'];