From: demeritcowboy Date: Fri, 23 Dec 2022 00:15:22 +0000 (-0500) Subject: restore ability to have fractional quantity X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3eacb72db80610c6f99e18faf584d1c07152be25;p=civicrm-core.git restore ability to have fractional quantity --- diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index b153763e2a..29521089c4 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -302,7 +302,7 @@ WHERE li.contribution_id = %1"; } foreach ($params["price_{$fid}"] as $oid => $qty) { - $qty = (int) $qty; + $qty = (float) $qty; $price = (float) ($amount_override === NULL ? $options[$oid]['amount'] : $amount_override); $participantsPerField = (int) CRM_Utils_Array::value('count', $options[$oid], 0);