]> git.evergreen-ils.org Git - Evergreen.git/commit
Backport r19137 from trunk
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 7 Jan 2011 23:06:10 +0000 (23:06 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 7 Jan 2011 23:06:10 +0000 (23:06 +0000)
commitba93aeecf161653f414e302e4a259a487d83a2af
treedbb548d1f9a0e5e2872e26ca0a0ab64cfc7f7647
parentc471f7e966349119f4b529f7ca56a0df56167b05
Backport r19137 from trunk

Make openils.PermaCrud.Store use a default order_by clause in common situations

This avoids an issue where, using a FilteringSelect dijit, sometimes you type a
couple letters, let's says "ABC", and you get a set of matches like this:

"ABCDE"
"ABCD"
"ABC"

just because there happens to be no specific ordering.  If you click the ABC
match and tab away too quickly, the dijit will reset itself to the first match,
"ABCDE".  This is probably a Dojo/Dijit bug, as I've been able to duplicate the
problem with other stores, but that's all murky.

This avoids the issue by making sure the shortest match is at the top of the
list.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19138 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/web/js/dojo/openils/PermaCrud/Store.js