MDL-7855 Sanitize field type when importing presents into data mod
This commit is contained in:
@@ -543,6 +543,7 @@ class PresetImporter {
|
||||
$f->$param = $value[0]['#'];
|
||||
}
|
||||
$f->dataid = $this->data->id;
|
||||
$f->type = clean_param($f->type, PARAM_ALPHA);
|
||||
$fields[] = $f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user