MDL-59630 analytics: Purge everything when the model is deleted

This commit is contained in:
David Monllao 2017-08-30 12:53:38 +02:00
parent a8ccc5f2eb
commit 99b84a26f9
4 changed files with 119 additions and 5 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));
}