Commit 2dd35665 authored by Francois Gannaz's avatar Francois Gannaz
Browse files

Activity form: once saved, can't select another mission

parent 35b1f0e3
......@@ -100,4 +100,11 @@ class mod_labnbook_mod_form extends moodleform_mod {
// Add standard buttons.
$this->add_action_buttons();
}
function definition_after_data() {
parent::definition_after_data();
if ($this->_form->getElementValue('update')) {
$this->_form->freeze('labnbook_missionid');
}
}
}
Supports Markdown
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