Ticket #5357 (closed defect: fixed)
ItemFileWriteStore does not revert properly
| Reported by: | guest | Owned by: | jaredj |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.2 |
| Component: | Data | Version: | 1.0 |
| Severity: | major | Keywords: | ItemFileWriteStore revert |
| Cc: |
Description
When items are added there is a
newItem[this._itemNumPropName]=this._arrayOfAllItems.length and then this_arrayOfAllItems.push(newItem).
On the revert it does
this._arrayOfAllItems[newItem._itemNumPropName]=null.
It should be this._arrayOfAllItems[newItem[this._itemNumPropName]].
JavaScript? in its wisdom is failing silently here since newItem has no _itemNumPropName. It is also clear that the functionality was never tested when the method was changed for version 1.0. Include a test case with the fix!
Attachments
Change History
Note: See
TracTickets for help on using
tickets.