Recycle bin: backup error

Recycle bin: backup error

by Iban Cardona i Subiela -
Number of replies: 0
Hello,

I created my custom module and after delete it in a course and trying to recover it from the recycle byn I see this error:

error/unknow_context_mapping : line 239 of /backup/util/plan/restore_structure_step.class.php: call to restore_dops::send_files_to_pool()

In my function define_structure() of the file backup_mycustommodule_stepslib.php I added this:

$mycustommodule->annotate_files('mod_mycustommodule', 'myfilearea', null);

And in my function after_execute() of the file restore_mycustomodule_stepslib.php I added this:

$this->add_related_files('mod_mycustommodule', 'myfilearea', null);

What am I doing wrong?

Thank you so much.





Average of ratings: -