Skip to content

Commit

Permalink
MDL-62799 tool_dataprivacy: Fix CiBoT complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 13, 2018
1 parent 983b72c commit 51e87bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Expand Up @@ -25,6 +25,8 @@

namespace tool_dataprivacy\form;

defined('MOODLE_INTERNAL') || die();

use MoodleQuickForm_autocomplete;

global $CFG;
Expand All @@ -42,21 +44,21 @@ class request_user_autocomplete extends MoodleQuickForm_autocomplete {
/**
* Constructor.
*
* @param string $elementName Element name
* @param mixed $elementLabel Label(s) for an element
* @param string $elementname Element name
* @param mixed $elementlabel Label(s) for an element
* @param array $options Options to control the element's display
* Valid options are:
* - multiple bool Whether or not the field accepts more than one values.
*/
public function __construct($elementName = null, $elementLabel = null, $options = array()) {
public function __construct($elementname = null, $elementlabel = null, $options = array()) {
$validattributes = array(
'ajax' => 'tool_dataprivacy/form-user-selector',
);
if (!empty($options['multiple'])) {
$validattributes['multiple'] = 'multiple';
}

parent::__construct($elementName, $elementLabel, array(), $validattributes);
parent::__construct($elementname, $elementlabel, array(), $validattributes);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/dataprivacy/classes/privacy/provider.php
Expand Up @@ -143,7 +143,7 @@ public static function export_user_data(approved_contextlist $contextlist) {
$contextdatatowrite[] = $data;
}

// {User context} / Privacy and policies / Data requests.
// ...{User context} / Privacy and policies / Data requests.
$subcontext = [
get_string('privacyandpolicies', 'admin'),
get_string('datarequests', 'tool_dataprivacy'),
Expand Down

0 comments on commit 51e87bc

Please sign in to comment.