salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.26k stars 2.03k forks source link

Fix #10459 - Resolve not being able to clear template cache #10460

Open gaspare-joubert opened 1 week ago

gaspare-joubert commented 1 week ago

When optional $view value does not contain file extension '.tpl'. When DetailView cache template directory was built using $_SESSION['groupLayout'] in TemplateHandler::buildTemplate().

In include/TemplateHandler/TemplateHandler::clearCache I have upated the IF statements to add the '.tpl' extension to $view and to check for '$_SESSION['groupLayout']'.

Motivation and Context

This is fixing a bug

How To Test This

Refer to the Issue for testing steps.

Types of changes

Final checklist