resolve TypeError: unsupported operand types: string + int;
authorginkgoMZD <mzd@ginkgostreet.com>
Wed, 23 Mar 2022 13:56:38 +0000 (09:56 -0400)
committerginkgoMZD <mzd@ginkgostreet.com>
Wed, 23 Mar 2022 13:56:38 +0000 (09:56 -0400)
templates/CRM/Price/Form/LineItem.tpl
templates/CRM/Price/Page/LineItem.tpl

index 7502e850ad26ccb223c43ce8efb9db170df68436..e94853330ffc62e80475bb42994c32c7190a93b6 100644 (file)
           {assign var="lineItemCount" value=0}
 
           {foreach from=$pcount item=p_count}
-            {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
+            {assign var="intPCount" value=$p_count.participant_count|intval}
+            {assign var="lineItemCount" value=$lineItemCount+$intPCount}
           {/foreach}
           {if $lineItemCount < 1 }
             {assign var="lineItemCount" value=1}
index 7bac227eb9b424965787d13112a9425fc55e286a..d2c55bebcb520bdb1e3591b68e00fccf26d8b75b 100644 (file)
         {assign var="lineItemCount" value=0}
 
         {foreach from=$pcount item=p_count}
-          {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
+          {assign var="intPCount" value=$p_count.participant_count|intval}
+          {assign var="lineItemCount" value=$lineItemCount+$intPCount}
         {/foreach}
         {if $lineItemCount < 1 }
           {assign var="lineItemCount" value=1}