Skip to content

Commit

Permalink
MDL-61899 tool_dataprivacy: Remove namespace alias
Browse files Browse the repository at this point in the history
Includes MDL-61935
  • Loading branch information
dmonllao authored and stronk7 committed Apr 18, 2018
1 parent d21f89c commit 042729a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions admin/tool/dataprivacy/classes/form/purpose.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
defined('MOODLE_INTERNAL') || die();

use core\form\persistent;
use tool_dataprivacy\purpose as purpose_persistent;

/**
* Data purpose form.
Expand All @@ -46,8 +45,6 @@ class purpose extends persistent {
* Define the form - called by parent constructor
*/
public function definition() {
global $DB;

$mform = $this->_form;

$mform->addElement('text', 'name', get_string('name'), 'maxlength="100"');
Expand All @@ -60,7 +57,7 @@ public function definition() {

// Field for selecting lawful bases (from GDPR Article 6.1).
$lawfulbases = [];
foreach (purpose_persistent::GDPR_ART_6_1_ITEMS as $article) {
foreach (\tool_dataprivacy\purpose::GDPR_ART_6_1_ITEMS as $article) {
$key = 'gdpr_art_6_1_' . $article;
$lawfulbases[$key] = get_string($key . '_name', 'tool_dataprivacy');
}
Expand All @@ -73,7 +70,7 @@ public function definition() {

// Optional field for selecting reasons for collecting sensitive personal data (from GDPR Article 9.2).
$sensitivereasons = [];
foreach (purpose_persistent::GDPR_ART_9_2_ITEMS as $article) {
foreach (\tool_dataprivacy\purpose::GDPR_ART_9_2_ITEMS as $article) {
$key = 'gdpr_art_9_2_' . $article;
$sensitivereasons[$key] = get_string($key . '_name', 'tool_dataprivacy');
}
Expand Down

0 comments on commit 042729a

Please sign in to comment.