LP#1777207: add duplicate row detection to prepend()
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 12 Jul 2019 14:51:28 +0000 (10:51 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 12 Jul 2019 14:51:28 +0000 (10:51 -0400)
commit68893029f0d45460320ffcb780d3d34ba21cc1ef
tree31d255131a9a608a3630bc6011be95f89b7946f8
parent765cd32852e0db254053cb7a0d65d031cd145bc2
LP#1777207: add duplicate row detection to prepend()

This patch ensures that if a visible grid item that might be
added via prepend() would duplicate an existing row entry, a
full collect() is done instead. This patch also converts a
prepend() to a full collect() if sorting is in effect, so we
cannot know whether the most recently added item should be
displayed in the visible rows otherwise.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/services/grid.js