MDL-71461 core_customfield: Add missing library in textarea export value

This commit is contained in:
David Matamoros
2022-01-11 11:19:57 +01:00
parent 3105d5bc9f
commit f682557e5f
@@ -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;