https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42189

--- Comment #49 from Paul Derscheid <[email protected]> ---
Created attachment 198935
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198935&action=edit
Bug 42189: (follow-up) Fix onWidgetRegistered to target single widget

- Filter to just the newly arrived widget via e.detail.id instead of
  re-evaluating all registered widgets, which could re-add widgets
  the user had previously removed
- Replace splice-by-saved-index with push to avoid inserting at a
  stale index into a partially populated array

To test:
- Install two plugin widgets targeting the same module
- Register the second one after the first is already on the dashboard
- Verify only the new widget is added, not a duplicate of the first

Signed-off-by: Clemens Tubach <[email protected]>
Signed-off-by: Thomas Klausner <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to