SuiteCRM
SuiteCRM copied to clipboard
Fix #10459 - Resolve not being able to clear template cache
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
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
- [x] My code follows the code style of this project found here.
- [ ] My change requires a change to the documentation.
- [x] I have read the How to Contribute guidelines.