Closed (fixed)
Project:
Conditional Fields
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2010 at 11:10 UTC
Updated:
31 Mar 2011 at 20:41 UTC
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 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.