Commit aeff2f10 authored by Yuliya Bozhko's avatar Yuliya Bozhko
Browse files

Fix parent path calculation when files are renamed (Bug #1359531)



Change-Id: Ibc3df16e0cfbf64f8ff77379352ae5cf2d3a172a
Signed-off-by: default avatarYuliya Bozhko <yuliya.bozhko@totaralms.com>
parent 93bc40e7
......@@ -274,6 +274,10 @@ abstract class ArtefactType implements IArtefactType {
}
}
if (!empty($this->parent)) {
$this->oldparent = $this->parent;
}
$this->artefacttype = $this->get_artefact_type();
if (!empty($data->artefacttype)) {
if ($this->artefacttype != $data->artefacttype) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment