Skip to content

Commit

Permalink
Update MembershipExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermoor authored Feb 23, 2022
1 parent 8cb6e50 commit e51f741
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CRM/Admin/Form/Setting/MembershipExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,14 @@ protected function getAmountFieldOptions($read_only) {
// 3) indexed

// if there is eligible groups, look for fields
// Issue 50 fixed
if (!empty($custom_group_ids)) {
$custom_fields = civicrm_api3('CustomField', 'get', array(
'custom_group_id' => array('IN' => $custom_group_ids),
'data_type' => 'Money',
'is_active' => 1,
'is_searchable' => 1,
'is_view' => $read_only ? '1' : '0',
'is_view' => $read_only ? '1' : NULL,
'return' => 'id,label'));
foreach ($custom_fields['values'] as $custom_field) {
$options[$custom_field['id']] = $custom_field['label'];
Expand Down Expand Up @@ -538,4 +539,4 @@ protected function getEligibleCustomGroups() {
}
return $this->_eligibleCustomGroups;
}
}
}

0 comments on commit e51f741

Please sign in to comment.