Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
2dd35665
Commit
2dd35665
authored
Feb 22, 2019
by
Francois Gannaz
Browse files
Activity form: once saved, can't select another mission
parent
35b1f0e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod_form.php
View file @
2dd35665
...
...
@@ -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'
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment