Enorice fix (grumpy smarty)
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 20 Mar 2022 20:38:17 +0000 (09:38 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 20 Mar 2022 20:38:17 +0000 (09:38 +1300)
CRM/UF/Page/Group.php
templates/CRM/UF/Page/Group.tpl

index 07e3daf6016601aebaaec8bba35f23ff55661b74..c3b35bc0bb5ee8ba439307b5e3ba67531e62301c 100644 (file)
@@ -301,7 +301,7 @@ class CRM_UF_Page_Group extends CRM_Core_Page {
     CRM_Utils_Hook::aclGroup(CRM_Core_Permission::ADMIN, NULL, 'civicrm_uf_group', $ufGroups, $allUFGroups);
 
     foreach ($allUFGroups as $id => $value) {
-      $ufGroup[$id] = [];
+      $ufGroup[$id] = ['class' => ''];
       $ufGroup[$id]['id'] = $id;
       $ufGroup[$id]['title'] = $value['title'];
       $ufGroup[$id]['frontend_title'] = $value['frontend_title'];
index 4bfc276a744071f6364a50fca1871d95979a6304..45e3c893ee7d7112ee86057ec88e96c168efb799 100644 (file)
@@ -69,7 +69,7 @@
               <tbody>
                 {foreach from=$rows item=row}
                 {if !$row.is_reserved }
-                  <tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
+                  <tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
                     <td class="crmf-title crm-editable">{$row.title}</td>
                     <td class="crmf-frontend_title crm-editable">{$row.frontend_title}</td>
                     <td>