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.
Hi all,
i'm using Conditional Fields 6.x-2.0-beta1 for handling field nested into fieldgroups alongiside with Content Profile, and i get several warnings when submitting the registration form.
warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/arca/sites/all/modules/conditional_fields/conditional_fields.module on line 952.
warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/arca/sites/all/modules/conditional_fields/conditional_fields.module on line 952.
warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/arca/sites/all/modules/conditional_fields/conditional_fields.module on line 952.
........
Here is the code at line 952 of conditional_fields.module
else {
// Do not submit values of controlled fields which were not triggered (except on preview)
if (variable_get('c_fields_reset_default_' . $form['type']['#value'], 1) &&
/*952*/ !in_array('node_form_build_preview', $form_state['submit_handlers']) &&
is_array($form['#field_info'][$field_in_group]['widget']['default_value'])) {
foreach ($form['#field_info'][$field_in_group]['widget']['default_value'] as $delta => $value) {
$form_state['values'][$field_in_group][$delta]['value'] = $value['value'];
}
If i comment out line 952 warnings disappear and registration process seems works correctly.
Is there any way i can ignore this check safely?
I attach my content type export too.
Regards
Daniele
Comment | File | Size | Author |
---|---|---|---|
content_type_profile.txt | 85.7 KB | tajabosc |
Comments
Comment #1
arithmetric CreditAttribution: arithmetric commentedHi Daniele,
I think this issue has been fixed in version 6.x-2.0-beta2. Please reopen this issue if you continue to encounter this error with the latest version.