diff --git a/tine20/library/ExtJS/src/data/Store.js b/tine20/library/ExtJS/src/data/Store.js index 56dd4556ba..a1d9838221 100644 --- a/tine20/library/ExtJS/src/data/Store.js +++ b/tine20/library/ExtJS/src/data/Store.js @@ -1270,12 +1270,16 @@ myStore.reload(lastOptions); if (this.isDestroyed === true) { return; } - if (options && options.add !== true && ((options.transactionId && this.lastTransactionId !== options.transactionId) || this.fireEvent('beforeloadrecords', o, options, success, this) === false)) { + this.options = options; + + if (options && options.add !== true + && ((options.transactionId && this.lastTransactionId !== options.transactionId) || this.fireEvent('beforeloadrecords', o, options, success, this) === false) + ) { // fire load event so loading indicator stops this.fireEvent('load', this, this.data.items, this.options); return; } - this.options = options; + if(!o || success === false){ if(success !== false){ this.fireEvent('load', this, [], options);