Revision 6be6f0b6 snf-cyclades-app/synnefo/ui/static/snf/js/models.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js
313 313
            // default to update
314 314
            if (!this.noUpdate) {
315 315
                if (options.update === undefined) { options.update = true };
316
                if (!options.removeMissing && options.refresh) { options.removeMissing = true };
316
                if (!options.removeMissing && options.refresh) { 
317
                  options.removeMissing = true;
318
                };
319
                // for collections which associated models don't support 
320
                // deleted state identification through attributes, resolve  
321
                // deleted entries by checking for missing objects in fetch 
322
                // responses.
323
                if (this.updateEntries && options.removeMissing === undefined) {
324
                  options.removeMissing = true;
325
                }
317 326
            } else {
318 327
                if (options.refresh === undefined) {
319 328
                    options.refresh = true;
329
                    if (this.updateEntries) {
330
                      options.update = true;
331
                      options.removeMissing = true;
332
                    }
320 333
                }
321 334
            }
322 335
            // custom event foreach fetch

Also available in: Unified diff