commit 47fbaa0dceab1eec2da5c80b2f0ab29e72687bb9 Author: Franck Deroche Date: Wed Apr 6 18:12:17 2011 +0200 Fix a fatal "_content_is_empty" error in some case. Using CCK3, and not choosing to hide the "other" fields when having a multivalue field in the content type leads to fatal error when trying to validate the form: content_validate tries to find informations about the fields in $form['#field_info'], but $form was empty. diff --git a/modules/content_profile_registration.module b/modules/content_profile_registration.module index 715714d..fec7892 100644 --- a/modules/content_profile_registration.module +++ b/modules/content_profile_registration.module @@ -214,7 +214,7 @@ function content_profile_registration_user_register_validate($form, &$form_state node_validate($node, $form); } elseif (module_exists('content')) { - content_validate($node); + content_validate($node, $form); } $form_state['content_profile_registration'][$type]['node'] = $node;