Skip to content

Commit

Permalink
Remove do-nothing code.
Browse files Browse the repository at this point in the history
This code conditionally adds the field is_required to the array that already
contains the field is_required
  • Loading branch information
eileenmcnaughton committed Aug 11, 2023
1 parent bd65d4e commit 86707c3
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 86707c3

Please sign in to comment.