-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.3
-
MOODLE_403_STABLE
Replication steps:
Go into mod/assign/lib.php and put the following function right at the end:
function mod_assign_before_footer() { |
echo '<br>'; |
echo '<br>'; |
$thing = [ |
(object) ['id' => 1, 'name' => 'awesome'], |
(object) ['id' => 2, 'name' => 'excellent'] |
];
|
print_object($thing); |
throw new coding_exception('hello'); |
}
|
- Now go and visit an assignment activity.
Expectation: The printed output should be formatted in a way similar to before the changes made to print_object() in MDL-32278
Result: Content that is not as well formatted.
- is a regression caused by
-
MDL-32278 Lib: improve print_object to handle recursion, produce prettier output
- Closed