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

CommentFileSizeAuthor
content_type_profile.txt85.7 KBtajabosc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arithmetric’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta2
Status: Active » Fixed

Hi 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.