Skip to content

Commit

Permalink
MDL-71461 core_customfield: Add missing library in textarea export value
Browse files Browse the repository at this point in the history
  • Loading branch information
dravek committed Jan 11, 2022
1 parent 3105d5b commit f682557
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions customfield/field/textarea/classes/data_controller.php
Expand Up @@ -162,6 +162,9 @@ public function get_default_value() {
* @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;
Expand Down

0 comments on commit f682557

Please sign in to comment.