mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-59630 analytics: Purge everything when the model is deleted
This commit is contained in:
parent
a8ccc5f2eb
commit
99b84a26f9
4 changed files with 119 additions and 5 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue