Flip logic for determining if $section variable is set.
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 10 Nov 2021 19:23:40 +0000 (19:23 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Wed, 10 Nov 2021 19:23:40 +0000 (19:23 +0000)
Previously empty() function calls were added in order to provide PHP8 compatiability,
however, the logic commited was back-to-front.

This broke the ability to display pie and bar charts for those reports which support them.

templates/CRM/Report/Form/Layout/Graph.tpl

index d3de9439ed3db73f492a85f72c4ef68813440308..137753d1bdc81ac03fca5f2820ed8bba550e443f 100644 (file)
@@ -20,7 +20,7 @@
 {/if}
 
 {if empty($printOnly)} {* NO print section starts *}
-  {if !empty($section)}
+  {if empty($section)}
     {include file="CRM/common/chart.tpl" divId="chart_$uniqueId"}
   {/if}
   {if !empty($chartData)}