-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.7, 2.8.5
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-49674-master-commentformat -
When adding a new comment via the comment API, the comment area owner plugin has a chance to modify the comment via a callback. If the plugin modifies the comment format from the default FORMAT_MOODLE to something else, the comment is still rendered with the default format when returned to the client as the AJAX response. When the user reloads the whole page again, only then the comment is properly formatted using the stored format value.
Expected behaviour
When adding a comment via AJAX, the instant display should respect the eventually modified format already.
What actually happens
The format is respected only at the next full page loads.