From 23f03b8964e7f6bed5d0201b58a4cfd9b9b2b8cc Mon Sep 17 00:00:00 2001 From: John van Breda Date: Tue, 1 Aug 2017 14:35:02 +0100 Subject: [PATCH] Fixes mapping of groups across lists See https://github.com/biologicalrecordscentre/irecord/issues/25. Loads correct report when taxon groups are being counted using the group mappings from a single master list. --- prebuilt_forms/extensions/event_reports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prebuilt_forms/extensions/event_reports.php b/prebuilt_forms/extensions/event_reports.php index a7f1be39c..2d804cb90 100644 --- a/prebuilt_forms/extensions/event_reports.php +++ b/prebuilt_forms/extensions/event_reports.php @@ -262,7 +262,7 @@ public static function groups_pie($auth, $args, $tabalias, $options, $path) { ), $options ); - $reportOptions['dataSource'] = empty($reportOptions['extraParams']['taxon_list_id']) ? + $reportOptions['dataSource'] = empty($reportOptions['extraParams']['master_taxon_list_id']) ? 'library/taxon_groups/filterable_group_counts' : 'library/taxon_groups/filterable_group_counts_multi_checklist'; $r = self::output_title($options); $r .= report_helper::report_chart($reportOptions);