CRM-12173 Add profile name (uf_group.name) to profile fieldset class.
authorDave Greenberg <dave@civicrm.org>
Mon, 25 Mar 2013 02:14:35 +0000 (19:14 -0700)
committerDave Greenberg <dave@civicrm.org>
Mon, 25 Mar 2013 02:14:35 +0000 (19:14 -0700)
CRM/Core/BAO/UFGroup.php
templates/CRM/UF/Form/Block.tpl

index 210d92e411aaa1e65b5e80e3f76bd7158b06b694..489dc01fc6a8db2ae8c3af95dd1b50c1cacb9f7f 100644 (file)
@@ -447,6 +447,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
     $formattedField = array(
       'name' => $name,
       'groupTitle' => $group->title,
+      'groupName'  => $group->name,
       'groupHelpPre' => empty($group->help_pre) ? '' : $group->help_pre,
       'groupHelpPost' => empty($group->help_post) ? '' : $group->help_post,
       'title' => $title,
index f2dc3d309a9707bad7207e0ab6fbafa3a228c607..9e879e7be39268d3ecb874232e975a9b9fa8641a 100644 (file)
@@ -44,7 +44,7 @@
         {/if}
 
         {if $mode ne 8 && $action ne 1028 && $action ne 4}
-        <fieldset class="crm-profile crm-profile-id-{$field.group_id}"><legend>{$field.groupTitle}</legend>
+        <fieldset class="crm-profile crm-profile-id-{$field.group_id} crm-profile-name-{$field.groupName}"><legend>{$field.groupTitle}</legend>
         {/if}
 
         {if $form.formName eq 'Confirm' OR $form.formName eq 'ThankYou'}