diff --git a/creator/packages/steedos-object-database/models/object_fields.coffee b/creator/packages/steedos-object-database/models/object_fields.coffee index fd8262c416..8f2cea90fc 100644 --- a/creator/packages/steedos-object-database/models/object_fields.coffee +++ b/creator/packages/steedos-object-database/models/object_fields.coffee @@ -204,7 +204,7 @@ Creator.Objects.object_fields = when: "before.update" todo: (userId, doc, fieldNames, modifier, options)-> if doc.name == 'name' && modifier?.$set?.name && doc.name != modifier.$set.name - throw new Meteor.Error 500, "不能修改此纪录的name属性" + throw new Meteor.Error 500, "不能修改此记录的name属性" if modifier?.$set?.name && isRepeatedName(doc, modifier.$set.name) console.log("update fields对象名称不能重复#{doc.name}") throw new Meteor.Error 500, "对象名称不能重复" diff --git a/packages/standard-objects/object-database/object_fields.object.js b/packages/standard-objects/object-database/object_fields.object.js index e8910bf2ec..0cfc5baa81 100644 --- a/packages/standard-objects/object-database/object_fields.object.js +++ b/packages/standard-objects/object-database/object_fields.object.js @@ -386,7 +386,7 @@ var triggers = { // } if (doc.name === 'name' && _.has(modifier.$set, '_name') && doc.name !== modifier.$set._name) { - throw new Meteor.Error(500, "不能修改此纪录的name属性"); + throw new Meteor.Error(500, "不能修改此记录的name属性"); } if(_.has(modifier.$set, "_name")){