Opened 6 years ago

Last modified 3 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 6 years ago by bill

Owner: set to dg
Status: newassigned

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.12

comment:3 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.