My setup:

  • Acquia 6.x which ends up being Drupal 6.19
  • CCK 6.x-3.0-alpha3

Problem:

I have a content type with multiple required multigroups. When submitting an incomplete form I get the errors at the top of the page but actual elements within the multigroups are not highlighted.

Fix:

diff --git a/profiles/drupal_commons/modules/contrib/cck/modules/content_multigroup/content_multigroup.node_form.inc b/profiles/drupal_commons/modules/contrib
index e9c48bf..0db3bf1 100644
--- a/profiles/drupal_commons/modules/contrib/cck/modules/content_multigroup/content_multigroup.node_form.inc
+++ b/profiles/drupal_commons/modules/contrib/cck/modules/content_multigroup/content_multigroup.node_form.inc
@@ -447,7 +447,7 @@ function content_multigroup_node_form_validate($form, &$form_state) {

     // Required multigroups require at least one non-empty subgroup of fields.
     if ($group_required && empty($non_empty_subgroups)) {
-      form_set_error('', t('Group @name requires one collection of fields minimum.', array('@name' => t($group['label']))));
+      form_set_error($required_field_errors[0][key($required_field_errors[0])]['element'], t('Group @name requires one collection of fields minimum.', array(
       continue;
     }