comparison core/modules/quickedit/js/models/FieldModel.es6.js @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
216 // Find all instances of fields that display the same logical field 216 // Find all instances of fields that display the same logical field
217 // (same entity, same field, just a different instance and maybe a 217 // (same entity, same field, just a different instance and maybe a
218 // different view mode). 218 // different view mode).
219 .where({ logicalFieldID: currentField.get('logicalFieldID') }) 219 .where({ logicalFieldID: currentField.get('logicalFieldID') })
220 .forEach((field) => { 220 .forEach((field) => {
221 // Ignore the current field. 221 // Ignore the current field and other fields with the same view mode.
222 if (field === currentField) { 222 if (field !== currentField && field.get('fieldID') !== currentField.get('fieldID')) {
223
224 }
225 // Also ignore other fields with the same view mode.
226 else if (field.get('fieldID') === currentField.get('fieldID')) {
227
228 }
229 else {
230 otherViewModes.push(field.getViewMode()); 223 otherViewModes.push(field.getViewMode());
231 } 224 }
232 }); 225 });
233 return otherViewModes; 226 return otherViewModes;
234 }, 227 },