Fix for forms.js (#4996)

- Fixes subtle bug introduced in recent javascript linting fix
- Prevented error messages from displaying on modal forms
- The whole thing needs to be razed and rebuilt
This commit is contained in:
Oliver 2023-06-08 21:30:10 +10:00 committed by GitHub
parent 842d7a93d5
commit bae1c239e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1362,7 +1362,7 @@ function handleNestedArrayErrors(errors, field_name, options={}) {
// Find the target (nested) field
var target = `${field_name}_${sub_field_name}_${nest_id}`;
addFieldErrorMessage(target, errors, options);
addFieldErrorMessage(target, sub_errors, options);
}
}
}