Skip to content

Commit

Permalink
Adopt Moodle core change in block_html from MDL-77164
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 22, 2023
1 parent 63b6d85 commit fd4fc01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2023-10-23 - Adopt Moodle core change in block_html from MDL-77164
* 2023-10-23 - Adopt Moodle core change in block_html to show the block config directly when adding the block from MDL-74465
* 2023-10-23 - Adopt Moodle core change in block_html from MDL-76583
* 2023-10-23 - Adopt Moodle core change in block_html from MDL-76577
Expand Down
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static function export_user_data(approved_contextlist $contextlist) {
/**
* Delete all data for all users in the specified context.
*
* @param context $context The specific context to delete data for.
* @param \context $context The specific context to delete data for.
*/
public static function delete_data_for_all_users_in_context(\context $context) {

Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @param stdClass $course course object
* @param stdClass $birecordorcm block instance record
* @param stdClass $context context object
* @param context $context context object
* @param string $filearea file area
* @param array $args extra arguments
* @param bool $forcedownload whether or not force download
Expand Down
2 changes: 2 additions & 0 deletions tests/privacy/privacy_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function test_user_block() {

// Export the data.
$this->export_context_data_for_user($user->id, $context, 'block_cohortspecifichtml');
/** @var \core_privacy\tests\request\content_writer $writer */
$writer = \core_privacy\local\request\writer::with_context($context);
$this->assertTrue($writer->has_any_data());

Expand Down Expand Up @@ -240,6 +241,7 @@ public function test_user_block_unconfigured() {

// Export the data.
$this->export_context_data_for_user($user->id, $context, 'block_cohortspecifichtml');
/** @var \core_privacy\tests\request\content_writer $writer */
$writer = \core_privacy\local\request\writer::with_context($context);
$this->assertFalse($writer->has_any_data());
}
Expand Down

0 comments on commit fd4fc01

Please sign in to comment.