Skip to content

Commit

Permalink
Merge pull request #27047 from eileenmcnaughton/is_required
Browse files Browse the repository at this point in the history
Remove do-nothing code.
  • Loading branch information
colemanw authored Aug 11, 2023
2 parents f9c1e76 + 86707c3 commit 50d6517
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CRM/Price/BAO/PriceSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public static function getAssoc($withInactive = FALSE, $extendComponentName = FA
* @param int $setID
* Price Set ID.
* @param bool $required
* Appears to have no effect based on reading the code.
* Deprecated.
* @param bool $doNotIncludeExpiredFields
* Should only fields where today's date falls within the valid range be returned?
*
Expand Down Expand Up @@ -415,9 +415,6 @@ public static function getSetDetail($setID, $required = TRUE, $doNotIncludeExpir
'visibility_id',
'is_required',
];
if ($required == TRUE) {
$priceFields[] = 'is_required';
}

// create select
$select = 'SELECT ' . implode(',', $priceFields);
Expand Down

0 comments on commit 50d6517

Please sign in to comment.