MDL-65583 tool_analytics: Model name from a data attribute

The credit and the patch using this approach goes to David Mudrák.
This commit is contained in:
David Monllaó
2019-05-13 22:54:28 +02:00
parent 6a7451ff1b
commit a1fb183df0
4 changed files with 17 additions and 4 deletions
+1
View File
@@ -1447,6 +1447,7 @@ class model {
$data = clone $this->model;
$data->modelname = format_string($this->get_name());
$data->name = $this->inplace_editable_name()->export_for_template($output);
$data->target = $this->get_target()->get_name();
$data->targetclass = $this->get_target()->get_id();