mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-10439 call definition_after_data() from moodleform constructor only when form submitted
This commit is contained in:
parent
2f61fc0ee6
commit
128c87a442
@ -125,8 +125,10 @@ class moodleform {
|
||||
// we have to know all input types before processing submission ;-)
|
||||
$this->_process_submission($method);
|
||||
|
||||
// update form definition based on final data
|
||||
$this->definition_after_data();
|
||||
// update form definition based on final data if form submitted
|
||||
if ($this->is_submitted()) {
|
||||
$this->definition_after_data();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user