Open chris001 opened 8 months ago
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
Hello @chris001,
thank you for this PR,
I'm afraid I'm not able to apply current fix:
Having suggested changes in the codebase I remove the application and the browser cache:
I can't get the popup view rendered:
Additional check: commenting out given line gives me an opportunity to get the view (without options in select as I don't pass them on the tpl):
Thanks in advance for your response!
Sorry for that @serhiisamko091184 I reworked the fix, tested it locally on Bitnami Suite 7.14.1 on PHP 8.1, and it works now. Please re-check on your side.
Hello @chris001,
thanks for your quick reply and update,
this fix works fine.
Thanks a lot!
Regards, Serhii
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/syntax-error-in-template-on-line-248-php-unknown-tag-php/94115/7
Fixes #10264
The
{php}
tag was removed from Smarty 3.1. There was an omission in converting the Smarty code in this code to be compatible with current Smarty version used, in the current maintenance release 7.14.2.Somehow, this
{php}
tag was left in this template file. Smarty 3.1 has removed{php}
tags. It must be replaced with Smarty 3.1+ compatible code.Description
Replace old
{php}
tag code with new code that works with Smarty 3.1+.Motivation and Context
The software will crash on this screen because
{php}
tag is no longer supported by current Smarty version used.How To Test This
Run Suite 7.14.2 and go to this screen. It should fail. Apply this fix and go to this screen. It should work.
Types of changes
Final checklist