@steedos/standard-object-database 2.5.17-beta.1 → 2.5.17-beta.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.
@@ -16,6 +16,8 @@ fields:
16
16
  searchable: true
17
17
  index: true
18
18
  inlineHelpText: Can only contain lowercase letters and numbers, must start with a letter, cannot end with an underscore character or contain two consecutive underscore characters
19
+ amis:
20
+ requiredOn: "${!!recordId}" #编辑记录时必填,新建记录时不必填走触发器给默认值
19
21
  object_name:
20
22
  label: Object
21
23
  type: master_detail
@@ -40,10 +40,6 @@ module.exports = {
40
40
  beforeUpdate: async function () {
41
41
  const oldDoc = await objectql.getObject(this.object_name).findOne(this.id)
42
42
  let name = oldDoc.name,object_name = oldDoc.object_name;
43
-
44
- if (!this.doc.name) {
45
- this.doc.name = 'listview_' + this.id.toLowerCase();
46
- }
47
43
 
48
44
  if(_.has(this.doc, 'name')){
49
45
  name = this.doc.name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.5.17-beta.1",
3
+ "version": "2.5.17-beta.2",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "b114deaebaecf9e2353b1892aa52175cc436cf9a"
18
+ "gitHead": "e66767a9214d49a229341a37f1d9b18737b25bd9"
19
19
  }