Commit d5914370 authored by jaapjansma's avatar jaapjansma
parents cfa64ca9 5dd826d1
# Version 1.8.0 (not yet released)
# Version 1.7.1
* Fixed issue with cloning data processors.
* Added Manage Case Link field.
* Fixed issue with dashlet opening in full screen.
......
......@@ -78,6 +78,20 @@ function dataprocessor_civicrm_alterAPIPermissions($entity, $action, &$params, &
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMenu/
*/
function dataprocessor_civicrm_alterMenu(&$items) {
// This hook is called BEFORE civicrm_entityTypes so DataProcessor API calls will fail with missing BAO in
// some cases (eg. running cv flush from cli)
// So we manually run it here before calling alterMenu function
$entityTypes = [];
_dataprocessor_civix_civicrm_entityTypes($entityTypes);
foreach ($entityTypes as $entityType) {
CRM_Core_DAO_AllCoreTables::registerEntityType(
$entityType['name'],
$entityType['class'],
$entityType['table'],
$entityType['fields_callback'] ?? NULL,
$entityType['links_callback'] ?? NULL
);
}
\Civi\DataProcessor\Output\UIOutputHelper::alterMenu($items);
}
......@@ -263,17 +277,6 @@ function dataprocessor_civicrm_entityTypes(&$entityTypes) {
_dataprocessor_civix_civicrm_entityTypes($entityTypes);
}
// --- Functions below this ship commented out. Uncomment as required. ---
/**
* Implements hook_civicrm_preProcess().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_preProcess
*
function dataprocessor_civicrm_preProcess($formName, &$form) {
} // */
/**
* Implements hook_civicrm_navigationMenu().
*
......
......@@ -14,7 +14,7 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/dataprocessor/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-05-19</releaseDate>
<releaseDate>2020-05-20</releaseDate>
<version>1.8-dev</version>
<develStage>stable</develStage>
<compatibility>
......
......@@ -169,7 +169,7 @@ CREATE TABLE `civicrm_data_processor_output` (
, CONSTRAINT FK_civicrm_data_processor_output_data_processor_id FOREIGN KEY (`data_processor_id`) REFERENCES `civicrm_data_processor`(`id`) ON DELETE CASCADE
) ;
) ENGINE=InnoDB ;
-- /*******************************************************
-- *
......@@ -193,6 +193,6 @@ CREATE TABLE `civicrm_data_processor_source` (
, CONSTRAINT FK_civicrm_data_processor_source_data_processor_id FOREIGN KEY (`data_processor_id`) REFERENCES `civicrm_data_processor`(`id`) ON DELETE CASCADE
) ;
) ENGINE=InnoDB ;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment