Skip to content
Snippets Groups Projects
Unverified Commit 6824c3a9 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #27169 from yashodha/report_improvement

(#4536) Fix 'Primary Membership' filter options in Membership…
parents ffaf767f c1057a30
Branches
Tags
No related merge requests found
......@@ -379,18 +379,13 @@ HERESQL;
}
}
public function getOperationPair($type = "string", $fieldName = NULL) {
public function getOperationPair($type = 'string', $fieldName = NULL) {
//re-name IS NULL/IS NOT NULL for clarity
if ($fieldName === 'owner_membership_id') {
$result = [];
$result[''] = ts('Any');
$result['nll'] = ts('Primary members only');
$result['nnll'] = ts('Non-primary members only');
$options = parent::getOperationPair($type, $fieldName);
foreach ($options as $key => $label) {
if (!array_key_exists($key, $result)) {
$result[$key] = $label;
}
}
}
else {
$result = parent::getOperationPair($type, $fieldName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment