ru.coon 2.7.59 → 2.7.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # Version 2.7.60, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/a9834f48d78a0ef436d2fa1b0f542c87a49b6f58)
2
+ * ## Fixes
3
+ * <span style='color:red'> modifiedRecords in CharacteristicGridEditor</span> ([766d5d], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/766d5d510024921fa18cf175034447778fc1bddb))
4
+
5
+ * update: CHANGELOG.md ([8c963c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/8c963c6dad24caf548735eb4b974f0e920eb85fa))
6
+
1
7
  # Version 2.7.59, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ef4a5428157a41658492ff36459d986a1778bb8e)
2
8
  * update: CHANGELOG.md ([9e5f92], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9e5f92d3707bc7708262e16383521d4e290d45e4))
3
9
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.7.59",
7
+ "version": "2.7.60",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -455,11 +455,18 @@ Ext.define('Coon.common.component.editor.CharacteristicGridEditor', {
455
455
  * Получить список значений характеристик, только измененные или добавленые
456
456
  * @param encodeFlag - сериализовать
457
457
  */
458
+
459
+ getModifiedRecords() {
460
+ return this.getStore().getRange().filter(
461
+ (record) => record.isNew || record.get('isDeleted') || record.get('markToCommit')
462
+ );
463
+ },
464
+
458
465
  getList: function(encodeFlag) {
459
466
  const ns = Coon.report.model.CharacteristicBeanFields;
460
467
 
461
468
  const encode = encodeFlag || false;
462
- const records = this.getStore().getModifiedRecords();
469
+ const records = this.getModifiedRecords();
463
470
 
464
471
  // Фильтрация новых характеристик с пустым значением
465
472
  const exportRecords = [];
@@ -267,6 +267,7 @@ Ext.define('Coon.common.component.editor.TypedCharacteristicEditor', {
267
267
 
268
268
  const ns = Coon.report.model.CharacteristicBeanFields;
269
269
  if (record.isModified('value') || record.isModified('valueDescription')) {
270
+ record.set('markToCommit', true);
270
271
  record.set(ns.$effectiveDate, this.effectiveDate);
271
272
  this.fireEvent('change', this, record);
272
273
  }
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.59',
3
+ number: '2.7.60',
4
4
  });