Open pablonr11 opened 4 months ago
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/custom-subpanel-sorting-bug/91946/10
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/adding-records-to-history-subpanel/90101/10
If I can add my 2 cents. I just tested this in my dev to fix the sorting of a custom subpanel. So far so good!
This fixes a bug that makes custom subpanels that uses $this->_focus->id as a function parameter not load correctly
Description
By adding the record Id to the getBean call the data for the current record is retrieved which allows the layout_def custom function to acceed the bean data for building a custom query correctly.
Motivation and Context
This reduces the error margin when creating custom subpanels for modules. Also prevents the user need to reload the page everytime a custom subpanel is opened.
How To Test This
Types of changes
Final checklist