1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-20 07:30:01 +01:00

MDL-66281 tool_dataprivacy: Set sensitive data processing default value

This commit is contained in:
Jun Pataleta 2019-07-30 13:56:51 +08:00
parent f622ee97e3
commit 91a8e1894b

@ -440,6 +440,9 @@ class purpose extends persistent {
}
if (!empty($data->sensitivedatareasons) && is_array($data->sensitivedatareasons)) {
$data->sensitivedatareasons = implode(',', $data->sensitivedatareasons);
} else {
// Nothing selected. Set default value of null.
$data->sensitivedatareasons = null;
}
// A single value.