Solved.
It was this function in mod_form.php
public function definition_after_data() {
if ($this->current->instance) {
return;
}
parent::definition_after_data();
}
I remove it, everything works as expected.
Solved.
It was this function in mod_form.php
public function definition_after_data() {
if ($this->current->instance) {
return;
}
parent::definition_after_data();
}