Merge branch 'MDL-71461-master' of https://github.com/dravek/moodle

This commit is contained in:
Sara Arjona
2022-01-12 09:58:21 +01:00
@@ -162,6 +162,9 @@ class data_controller extends \core_customfield\data_controller {
* @return mixed|null value or null if empty
*/
public function export_value() {
global $CFG;
require_once($CFG->libdir . '/filelib.php');
$value = $this->get_value();
if ($this->is_empty($value)) {
return null;