Opened 9 years ago
Closed 5 years ago
#12572 closed defect (patchwelcome)
store.JsonRest with enhancedgrid cause undefined in url
Reported by: | fabioginzel | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
memoryStore = new dojo.store.Memory({}); restStore = new dojo.store.JsonRest({target:"url/"}); cacheStore = new dojo.store.Cache(restStore, memoryStore) dataStore = new dojo.data.ObjectStore({objectStore: cacheStore}); gridCredencia.setStore(dataStore);
if click in sorting cause url: url/undefined?sort(+name)
sorry about my english
Change History (3)
comment:1 Changed 9 years ago by
Owner: | changed from Jared Jurkiewicz to Kris Zyp |
---|
comment:2 Changed 9 years ago by
comment:3 Changed 5 years ago by
Component: | Data → DojoX Grid |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I ran into this problem as well and solved it with a small fix in
dojo.store.JsonRest.js
.The cause of the problem is the
query
argument being undefined in thequery
function (line 115). Fixed by adding a line to the 'options.sort if':