SuiteCRM
SuiteCRM copied to clipboard
Fix #9658 - SuiteCRM add duplicate dashlet when filter is used
Solves #9658
Description
The PR modifies the properties of the HTML element returned by the dashlet filter to be the same as the element that is displayed when no filter is applied, so that only one dashlet is added.
Motivation and Context
Avoid having to remove a dashlet when the dashlet filter has been used
How To Test This
- Access the Home view
- Filter to add a dashlet from any module
- Check that only one dashlet are added.
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.