From 30fae489fb29415ca770f4c10721fba0216e34bb Mon Sep 17 00:00:00 2001 From: danghieu1407 Date: Tue, 6 May 2025 15:22:52 +0700 Subject: [PATCH] MDL-85378 Badges: Add option to export recipients list --- badges/classes/reportbuilder/local/systemreports/recipients.php | 2 +- badges/tests/behat/criteria_activity.feature | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/badges/classes/reportbuilder/local/systemreports/recipients.php b/badges/classes/reportbuilder/local/systemreports/recipients.php index 22d22659fed..ef78bea2408 100644 --- a/badges/classes/reportbuilder/local/systemreports/recipients.php +++ b/badges/classes/reportbuilder/local/systemreports/recipients.php @@ -66,7 +66,7 @@ class recipients extends system_report { $this->set_default_no_results_notice(new lang_string('nomatchingawards', 'core_badges')); // Set if report can be downloaded. - $this->set_downloadable(false); + $this->set_downloadable(true); } /** diff --git a/badges/tests/behat/criteria_activity.feature b/badges/tests/behat/criteria_activity.feature index 865af6fa1a1..4156f6f573c 100644 --- a/badges/tests/behat/criteria_activity.feature +++ b/badges/tests/behat/criteria_activity.feature @@ -122,3 +122,5 @@ Feature: Award badges based on activity completion And I select "Recipients (1)" from the "jump" singleselect And I should see "Student 1" And I should not see "Student 2" + And I should see "Download table data as" + And "Download" "button" should exist