#109 Models are not consistent with events

api-only
nobody
None
Defect
7
1.7.7
2013-04-07
2013-02-20
fqazi
No

An add operation should result in an ADD ChangeAction occurring in all the models. But the MemoModel and AddressModel tend to always emit CHANGE events. Also the object then ends up not being set for these operations.

Reproduction steps
This is not reproducible in the program but more of a code issue

Environment
Since its a code defect all environment suffer from it.

Suggested Fix
Emit appropriate event based on the action since in the future it may make sense to hook these operations for future features.

Example (requires code to reproduce)
1. Setup a listener on the relevant model.
2. Do an add operation (it will always get the change event and the object passed will be null)

Discussion

  • Mike Berger
    Mike Berger
    2013-04-07

    • status: open --> api-only