v11 PDF Manager error Cannot use object of type Link2

We are upgrading from v9.x to v11.x

I have a highly customized PDF generation and what appears to be a relatively straightforward error.

PHP Fatal error:  Uncaught Error: Cannot use object of type Link2 as array in /var/www/html/sugarcrm/cache/smarty/templates_c/%%6D/6DF/6DF496D3%%d6e861f7-a86f-11e6-8723-40167e36c126.tpl.php

the line in question is:

</div>  <?php if (isset ( $this->_tpl_vars['fields']['res_resellers_wcont_wolframcontracts_1']['name'] )): ?><div class="page">


which in my PDF document {if isset($fields.res_resellers_wcont_wolframcontracts_1.name)}, the field in question was obtained by using the Reseller module and Name field from the "Links" section of the dropdown in the "Field" so there is nothing strange there. 


I also tried {if !empty($fields.res_resellers_wcont_wolframcontracts_1.name)}

and {if $fields.res_resellers_wcont_wolframcontracts_1.name != ''}

but always get the same error.

What changed in v11.0.1 wrt smarty? Did I miss something in the Release notes?

Parents Reply Children
No Data