Merge branch 'MDL-58030' of git://github.com/aolley/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-02-27 22:47:14 +01:00
commit 06fb1df811

View file

@ -236,6 +236,7 @@ class gradingform_guide_renderer extends plugin_renderer_base {
$input = html_writer::tag('textarea', s($currentremark), $remarkparams); $input = html_writer::tag('textarea', s($currentremark), $remarkparams);
// Show the frequently-used comments chooser only if there are defined entries. // Show the frequently-used comments chooser only if there are defined entries.
$commentchooser = '';
if (!empty($comments)) { if (!empty($comments)) {
// Frequently used comments chooser. // Frequently used comments chooser.
$chooserbuttonid = 'criteria-' . $criterion['id'] . '-commentchooser'; $chooserbuttonid = 'criteria-' . $criterion['id'] . '-commentchooser';