Inline edit triggers multiple saves, very slow #8886
Labels
Area: Module
Issues & PRs related to modules that do not have specific label
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
When using inline editing, there are two performance problems:
I've tracked it down to a call generated from a keypress event that fires more than once as long as the key is held down, even if just for a fraction of a second.
Expected Behavior
Inline edit should be quick and use just one Ajax call when starting, one when saving.
Possible Fix
In
include/InlineEditing/inlineEditing.js
, change this lineto
This fixes the bug.
Then, to improve part 1. of the issue mentioned above, refactor these two calls to be done in just one round-trip to the server, joining the two results in a single payload:
I might provide these features as a PR as soon as I see that PR's are getting merged normally again. Right now I don't see the point in just adding to the list.
Your Environment
The text was updated successfully, but these errors were encountered: