ru.coon 2.7.1 → 2.7.2

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,10 @@
1
+ # Version 2.7.2, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/3b94df2c23f76552c5c626a4bfda4a317e33abff)
2
+ * ## Features
3
+ * <span style='color:green'>feat: HT-8199: trim string values in request</span> ([cfc709], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/cfc709daacaad1522f4dff858e04966a758bcb6a))
4
+
5
+ * ([Update], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/Update src/common/component/editor/CharacteristicLoaderPlugin.js929fc3b32d028554706e1d64c6ca40fedc615f39))
6
+ * update: CHANGELOG.md ([44e78b], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/44e78b830a9a374db90e2fc1554188c9154ce462))
7
+
1
8
  # Version 2.7.1, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/9028ecb552a8341a78e6a7e0d2f9eee91554c2d0)
2
9
  * upd ([901f4c], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/901f4c345d1025ef8861b1b649d84590c6a6a7ec))
3
10
  * update: CHANGELOG.md ([1a5ea6], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/1a5ea663b234831a73ec046c23b951b71797481a))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.7.1",
7
+ "version": "2.7.2",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -84,7 +84,17 @@ Ext.define('Coon.common.component.editor.CharacteristicLoaderPlugin', {
84
84
  clearCache: function() {
85
85
  this.cache = {};
86
86
  },
87
-
87
+ prepareData(data) {
88
+ if (!Ext.isArray(data)) {
89
+ return data;
90
+ }
91
+ return data.map((el) => {
92
+ if (typeof el.value === 'string') {
93
+ el.value = el.value.trim()
94
+ }
95
+ return el
96
+ })
97
+ },
88
98
  load: function() {
89
99
  if (this.caching) {
90
100
  const key = this.getCacheKey();
@@ -109,7 +119,7 @@ Ext.define('Coon.common.component.editor.CharacteristicLoaderPlugin', {
109
119
  }
110
120
 
111
121
  this.clear();
112
- this.loadFromData(answer['characteristics'], answer['characteristicTypes'], answer['isEffective']);
122
+ this.loadFromData(this.prepareData(answer['characteristics']), answer['characteristicTypes'], answer['isEffective']);
113
123
  this.model.subentityId = answer.subentityId || null;
114
124
  }.bind(this),
115
125
  params: this.model,
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.1',
3
+ number: '2.7.2',
4
4
  });