MDL-66281 tool_dataprivacy: Set sensitive data processing default value

This commit is contained in:
Jun Pataleta
2019-07-30 13:59:14 +08:00
parent e222b1ed8d
commit c5437625e1
@@ -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.