Commit 1bf7f9507cc87d6319427878da97a12f522967b9
Fix to update already nested data
A previous commit fixes the issue with nested data. This commit changes
client code to look for nested, with already exisiting users, and fix it while
saving/updating.
| | | | 254 | this.model.set({'showNav': false}); | 254 | this.model.set({'showNav': false}); |
---|
255 | } | 255 | } |
---|
256 | | 256 | |
---|
257 | //console.log('mode before save', this.model.toJSON()); | | //console.log('mode before save', this.model.toJSON()); |
---|
| | 257 | //code to remove nested page and status fields..a previous commit should | | | 258 | //fix the issue. the following code is for update data older than the |
---|
| | 259 | //commit. This should update old nested. Can remove after sometime? |
---|
| | 260 | if(this.model.get('page') || this.model.get('status')) { |
---|
| | 261 | this.model.unset('page'); |
---|
| | 262 | this.model.unset('status'); |
---|
| | 263 | } |
---|
258 | | 264 | |
---|
259 | this.model.save({}, { | 265 | this.model.save({}, { |
---|
260 | success: function(model, response) { | 266 | success: function(model, response) { |
---|