MDL-66281 tool_dataprivacy: Set sensitive data processing default value

This commit is contained in:
Jun Pataleta
2019-07-30 13:59:29 +08:00
parent bde0f62364
commit 39789fcbd1
@@ -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.