MDL-75788 testing: Handle new lines in menu profile field generator
This commit is contained in:
@@ -1320,6 +1320,11 @@ EOD;
|
||||
[$data['categoryid']]) + 1;
|
||||
}
|
||||
|
||||
if ($data['datatype'] === 'menu' && isset($data['param1'])) {
|
||||
// Convert new lines to the proper character.
|
||||
$data['param1'] = str_replace('\n', "\n", $data['param1']);
|
||||
}
|
||||
|
||||
// Defaults for other values.
|
||||
$defaults = [
|
||||
'description' => '',
|
||||
|
||||
Reference in New Issue
Block a user