Skip to content

Commit

Permalink
Merge pull request #22372 from eileenmcnaughton/acl4
Browse files Browse the repository at this point in the history
enotice fix (with default modifiers)
  • Loading branch information
eileenmcnaughton authored Jan 5, 2022
2 parents a7bda4a + 05c411c commit e2aeacb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/ACL/Page/EntityRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function browse() {
$groups = CRM_Core_PseudoConstant::staticGroup();

while ($dao->fetch()) {
$entityRoles[$dao->id] = [];
$entityRoles[$dao->id] = ['class' => ''];
CRM_Core_DAO::storeValues($dao, $entityRoles[$dao->id]);

$entityRoles[$dao->id]['acl_role'] = $aclRoles[$dao->acl_role_id] ?? NULL;
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/ACL/Page/EntityRole.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</thead>
<tbody>
{foreach from=$rows item=row}
<tr id="acl_role-{$row.id}" class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-acl_entity_role crm-entity {if NOT $row.is_active} disabled{/if}">
<tr id="acl_role-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-acl_entity_role crm-entity {if NOT $row.is_active} disabled{/if}">
<td class="crm-acl_entity_role-acl_role">{$row.acl_role}</td>
<td class="crm-acl_entity_role-entity">{$row.entity}</td>
<td class="crm-acl_entity_role-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
Expand Down

0 comments on commit e2aeacb

Please sign in to comment.