$value, $relationshipName
);
}
- $membershipType[$dao->id]['maxRelated'] = $membershipType[$dao->id]['max_related'] ?? NULL;
}
if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus() && !CRM_Core_Permission::check('edit contributions of type ' . CRM_Contribute_PseudoConstant::financialType($dao->financial_type_id))) {
unset($links[CRM_Core_Action::UPDATE], $links[CRM_Core_Action::ENABLE], $links[CRM_Core_Action::DISABLE]);
// form all action links
$action = array_sum(array_keys($this->links()));
- // update enable/disable links depending on if it is is_reserved or is_active
- if (!isset($dao->is_reserved)) {
- if ($dao->is_active) {
- $action -= CRM_Core_Action::ENABLE;
- }
- else {
- $action -= CRM_Core_Action::DISABLE;
- }
- $membershipType[$dao->id]['order'] = $membershipType[$dao->id]['weight'];
- $membershipType[$dao->id]['action'] = CRM_Core_Action::formLink($links, $action,
- ['id' => $dao->id],
- ts('more'),
- FALSE,
- 'membershipType.manage.action',
- 'MembershipType',
- $dao->id
- );
+ // update enable/disable links depending on if it is_active
+ if ($dao->is_active) {
+ $action -= CRM_Core_Action::ENABLE;
+ }
+ else {
+ $action -= CRM_Core_Action::DISABLE;
}
+ $membershipType[$dao->id]['order'] = $membershipType[$dao->id]['weight'];
+ $membershipType[$dao->id]['action'] = CRM_Core_Action::formLink($links, $action,
+ ['id' => $dao->id],
+ ts('more'),
+ FALSE,
+ 'membershipType.manage.action',
+ 'MembershipType',
+ $dao->id
+ );
}
$returnURL = CRM_Utils_System::url('civicrm/admin/member/membershipType', "reset=1&action=browse");
<td class="crmf-duration_interval_unit">{$row.duration_interval} {$row.duration_unit}</td>
<td class="crmf-auto_renew">{if $row.auto_renew EQ 2}{ts}Required{/ts}{elseif $row.auto_renew EQ 1}{ts}Optional{/ts}{else}{ts}No{/ts}{/if}</td>
<td class="crmf-relationship_type">{$row.relationshipTypeName}</td>
- <td class="crmf-max_related" align="right">{$row.maxRelated}</td>
+ <td class="crmf-max_related" align="right">{$row.max_related}</td>
<td class="crmf-visibility crm-editable" data-type="select">{$row.visibility}</td>
<td class="nowrap crmf-weight">{$row.weight}</td>
<td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>