1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 17:54:44 +02:00

Add @Notanotherdotcom PR #96 to allow use of field names with brackets (array) in field dependencies

This commit is contained in:
Ryan Cramer
2018-05-23 08:34:33 -04:00
parent d06fd64171
commit c1dc6a9b9f
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ function InputfieldDependencies($target) {
} else if($field.attr('type') == 'radio') {
// radio: one we are looking for is NOT checked, but determine which one is checked
consoleLog(inputType + " is NOT checked: " + fieldID);
var $checkedField = $field.closest('form').find("input[name=" + $field.attr('name') + "]:checked");
var $checkedField = $field.closest('form').find("input[name=\"" + $field.attr('name') + "\"]:checked");
if($checkedField.length) {
val = $checkedField.val();
consoleLog("Checked value is: " + val);

File diff suppressed because one or more lines are too long