Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In SuiteCRM, subpanels allow users to create related records using the "Quick Create" view, which is embedded within the subpanel itself. However, editing existing related records is only possible by navigating to the full edit view of the record, which disrupts the context of the related items.
This PR introduces a "Quick Edit" button for subpanels, which can replace the default "Edit" button. This new functionality enables users to edit related records directly within the subpanel using the "Quick Create" view, maintaining the context of the related items.
The following changes are included:
quickedit_button
option is available for subpanels, replacing the default edit button.This implementation is based on the idea discussed here:
https://community.suitecrm.com/t/quickedit-view-does-it-exist/80182/3.
Motivation and Context
This feature addresses the lack of a seamless way to edit related records within subpanels. By adding "Quick Edit" functionality, users can modify records directly within subpanels without leaving the main view, improving the user experience and saving time. This functionality is especially useful when working with related records that require frequent updates.
How To Test This
Testing via Studio
quickedit_button
option is available.quickedit_button
to the subpanel, save, and deploy.Testing via code:
modules/[SUBPANEL_MODULE]/metadata/subpanels/default.php
).SubPanelEditButton
widget withSubPanelQuickEditButton
as follows:Types of changes
Final checklist