@steedos/standard-object-database 2.7.10-beta.3 → 2.7.10-beta.4

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.
@@ -376,22 +376,22 @@ module.exports = {
376
376
  return {}
377
377
  }
378
378
  let sort_no = 50;
379
- _.each(schema.body, (group)=>{
380
- if(group.type === 'steedos-field-group'){
381
- const groupName = group.title;
382
- _.each(group.body, (field)=>{
379
+ _.each(schema.body, (bodyItem)=>{
380
+ if(bodyItem.type === 'steedos-field-group'){
381
+ const groupName = bodyItem.title;
382
+ _.each(bodyItem.body, (field)=>{
383
383
  if(_.startsWith(field.type, 'sfield-')){
384
384
  fields.push(Object.assign({}, field.config, {group: groupName, sort_no, _name: field.name}));
385
385
  sort_no += 50;
386
386
  }
387
387
  })
388
388
  groups.push({
389
- group_name: group.title,
390
- collapsed: group.collapsed,
391
- visible_on: group.visible_on
389
+ group_name: bodyItem.title,
390
+ collapsed: bodyItem.collapsed,
391
+ visible_on: bodyItem.visible_on
392
392
  })
393
- }else if(_.startsWith(field.type, 'sfield-')){
394
- fields.push(Object.assign({}, field.config, {sort_no, _name: field.name}));
393
+ }else if(_.startsWith(bodyItem.type, 'sfield-')){
394
+ fields.push(Object.assign({}, bodyItem.config, {sort_no, _name: bodyItem.name}));
395
395
  sort_no += 50;
396
396
  }
397
397
  })
@@ -461,6 +461,9 @@ module.exports = {
461
461
  if(submitField.type === "summary"){
462
462
  await initSummaryDoc(submitField);
463
463
  }
464
+ if(submitField){
465
+ delete submitField._id;
466
+ }
464
467
  await object_fields.directUpdate(id, Object.assign({}, submitField, {
465
468
  modified: now,
466
469
  modified_by: userSession.userId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.7.10-beta.3",
3
+ "version": "2.7.10-beta.4",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,14 +12,14 @@
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
14
  "@steedos-widgets/amis-lib": "^1.0.22",
15
- "@steedos/metadata-core": "2.7.10-beta.3",
16
- "@steedos/service-object-mixin": "2.7.10-beta.3",
17
- "@steedos/standard-objects": "2.7.10-beta.3",
15
+ "@steedos/metadata-core": "2.7.10-beta.4",
16
+ "@steedos/service-object-mixin": "2.7.10-beta.4",
17
+ "@steedos/standard-objects": "2.7.10-beta.4",
18
18
  "amis-formula": "~6.3.0",
19
19
  "clone": "^2.1.2",
20
20
  "moleculer-bullmq": "3.0.0"
21
21
  },
22
22
  "repository": {},
23
23
  "license": "MIT",
24
- "gitHead": "c4f4acbeb294d9e52152d83c6923b648fff4fbb8"
24
+ "gitHead": "7f5a2208e589252449048916357fdb22d379bc82"
25
25
  }