It seems like the reset() method on a model instance does not reset the id attribute correctly.
var model = new Y.Model();
model.set('id', 'an id');
// model.get('id') still returns 'an id'
For an unknown reason (to me), at some point the internal state of model object gets the id value as its initValue and this breaks the reset process.
Fix EZP-23584: Impossible to edit and publish the same content 2 time…
…s in a row
This is caused by yui/yui3#1982 and the fix introduces
a workaround for that.