Opened 8 years ago
Last modified 5 years ago
#17479 assigned defect
dojox.Calendar doesn't deal with possible failure while puting an item in a store
Reported by: | razvan_g_nutu | Owned by: | dg |
---|---|---|---|
Priority: | undecided | Milestone: | 1.15 |
Component: | Dojox | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
To be more specific: in order to perform some validation while modifying(dragging, resizing) an event(item) in a dojox.Calendar, I tried to override Store's "put" function and add the validating code there. However, I see no possibility to notify the Calendar that data has not been correctly updated in the store. Moreover, in
ViewBase?.js:_onItemEditEnd()
I spotted something as simple as: store.put(storeItem),
which, at first glance, have no concern about whether the data has been updated or not. Consequently, if "put" call fails (for example returns null), the visual item in the calendar remains modified, but will be "decoupled" from the store (no more drag and drop for it).
Is this an impossible scenario or a wrong approach on my side?
Kind Regards, Razvan.
Change History (3)
comment:1 Changed 8 years ago by
Owner: | set to dg |
---|---|
Status: | new → assigned |
comment:2 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:3 Changed 5 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.