#11024 closed defect (fixed)
XmlStore - serverside fetchItemByIdentity() always fetches null item
Reported by: | Caspar | Owned by: | Jared Jurkiewicz |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | DojoX Data | Version: | 1.4.0 |
Keywords: | typo, XmlStore | Cc: | Jared Jurkiewicz |
Blocked By: | Blocking: |
Description
dojox.data.XmlStore?'s fetchItemByIdentity function has a typo on line 1437 which causes it to always pass a null item to its provided onItem callback when serverside filtering is enabled.
Line 1437 is
var items = self._getItems(items, {});
At this point items is undefined.
Line 1437 should be
var items = self._getItems(data, {});
When this change is made, the function works as expected.
Originally found this bug by setting the value on a FilteringSelect? widget backed by a XmlStore? with sendQuery set to true; the displayed value isn't changed because the item returned by the store's fetchItemByIdentity onItem callback is null.
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|
Note: See
TracTickets for help on using
tickets.
(In [21925]) Very minor fix to XmlStore?. Wrong variable used in serverside query case. fixes #11024