mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Reverted previous fix for MDL-10382 Allow removing of elements with disabledIf conditions - "This fix has broken disabledIf in many forms. The problem is that if the dependentOn element is an element in a group then elementExists will return false."
This commit is contained in:
parent
ed30fa8e8a
commit
df2c2310e5
1 changed files with 0 additions and 3 deletions
|
@ -1219,9 +1219,6 @@ function validate_' . $this->_formName . '(frm) {
|
||||||
$js .= "var $iname = Array();\n";
|
$js .= "var $iname = Array();\n";
|
||||||
|
|
||||||
foreach ($this->_dependencies as $dependentOn => $conditions){
|
foreach ($this->_dependencies as $dependentOn => $conditions){
|
||||||
if (!$this->elementExists($dependentOn)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$js .= "{$iname}['$dependentOn'] = Array();\n";
|
$js .= "{$iname}['$dependentOn'] = Array();\n";
|
||||||
foreach ($conditions as $condition=>$values) {
|
foreach ($conditions as $condition=>$values) {
|
||||||
$js .= "{$iname}['$dependentOn']['$condition'] = Array();\n";
|
$js .= "{$iname}['$dependentOn']['$condition'] = Array();\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue