Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
"Notice: Undefined index: und w sheetnode_node_validate()"
Content type has sheetnode field, and custom group:
custom_group
- sheetnode_field
On validation the error show up because one of $form_state['field'] = '#parents'
Solution:
In sheetnode.module 679 line add substr( $field_name, 0, 5 ) === "field" to if statment
function sheetnode_node_validate($node, $form, &$form_state) {
$errors = form_get_errors();
if (!empty($errors) && !empty($form_state['field'])) foreach ($form_state['field'] as $field_name => $field) {
if (substr( $field_name, 0, 5 ) === "field" && $field[LANGUAGE_NONE]['field']['type'] == 'sheetfield' && !empty($form_state['input'][$field_name])) {
Comment | File | Size | Author |
---|---|---|---|
#2 | validation_error_group.patch | 8.72 KB | javi.pl |
Comments
Comment #2
javi.pl CreditAttribution: javi.pl commentedComment #3
willhallonlineThanks so much for the patch. Can you make the error a little easier to reproduce? Just trying to work out what the "custom group" is? I have tried with Field Group but don't seem to be able to replicate the error?