"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "admin/tool/dataprivacy/classes/form/purpose.php" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

purpose.php  (moodle-3.6.5.tgz):purpose.php  (moodle-3.6.6.tgz)
skipping to change at line 443 skipping to change at line 443
* @return \stdClass * @return \stdClass
*/ */
protected static function convert_fields(\stdClass $data) { protected static function convert_fields(\stdClass $data) {
$data = parent::convert_fields($data); $data = parent::convert_fields($data);
if (!empty($data->lawfulbases) && is_array($data->lawfulbases)) { if (!empty($data->lawfulbases) && is_array($data->lawfulbases)) {
$data->lawfulbases = implode(',', $data->lawfulbases); $data->lawfulbases = implode(',', $data->lawfulbases);
} }
if (!empty($data->sensitivedatareasons) && is_array($data->sensitivedata reasons)) { if (!empty($data->sensitivedatareasons) && is_array($data->sensitivedata reasons)) {
$data->sensitivedatareasons = implode(',', $data->sensitivedatareaso ns); $data->sensitivedatareasons = implode(',', $data->sensitivedatareaso ns);
} else {
// Nothing selected. Set default value of null.
$data->sensitivedatareasons = null;
} }
// A single value. // A single value.
$data->retentionperiod = 'P' . $data->retentionperiodnumber . $data->ret entionperiodunit; $data->retentionperiod = 'P' . $data->retentionperiodnumber . $data->ret entionperiodunit;
unset($data->retentionperiodnumber); unset($data->retentionperiodnumber);
unset($data->retentionperiodunit); unset($data->retentionperiodunit);
return $data; return $data;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)