Merge branch 'MDL-59630_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Andrew Nicols 2017-10-05 14:56:57 +08:00
commit 1afd3c72aa
17 changed files with 649 additions and 139 deletions

View file

@ -45,7 +45,7 @@ class edit_model extends \moodleform {
$mform = $this->_form;
if ($this->_customdata['model']->get_model_obj()->trained == 1) {
if ($this->_customdata['model']->is_trained()) {
$message = get_string('edittrainedwarning', 'tool_analytics');
$mform->addElement('html', $OUTPUT->notification($message, \core\output\notification::NOTIFY_WARNING));
}