Skip to content

Commit

Permalink
Merge branch 'MDL-61016_hideif_disabledif' of git://github.com/davosm…
Browse files Browse the repository at this point in the history
…ith/moodle
  • Loading branch information
David Monllao committed Dec 19, 2017
2 parents 7a1a9ec + 8fc3d41 commit dcae64d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/formslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2492,9 +2492,13 @@ function getLockOptionObject(){
}
}
foreach ($this->_hideifs as $dependenton => $conditions) {
$result[$dependenton] = array();
if (!isset($result[$dependenton])) {
$result[$dependenton] = array();
}
foreach ($conditions as $condition => $values) {
$result[$dependenton][$condition] = array();
if (!isset($result[$dependenton][$condition])) {
$result[$dependenton][$condition] = array();
}
foreach ($values as $value => $dependents) {
$result[$dependenton][$condition][$value][self::DEP_HIDE] = array();
foreach ($dependents as $dependent) {
Expand Down

0 comments on commit dcae64d

Please sign in to comment.