restore ability to have fractional quantity
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 23 Dec 2022 00:15:22 +0000 (19:15 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 23 Dec 2022 00:15:22 +0000 (19:15 -0500)
CRM/Price/BAO/LineItem.php

index b153763e2a6ea15cdf5b41a74b03d8a280e5807a..29521089c4595bea4235db3693db3e75cdd72037 100644 (file)
@@ -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);