link field empty name and audited note change

This commit is contained in:
yuri
2016-11-10 12:58:54 +02:00
parent 21e1422994
commit 5419d76080
3 changed files with 8 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ Espo.define('views/fields/link-parent', 'views/fields/base', function (Dep) {
nameName: this.nameName,
typeName: this.typeName,
idValue: this.model.get(this.idName),
nameValue: this.model.get(this.nameName),
nameValue: this.model.has(this.nameName) ? this.model.get(this.nameName) : this.model.get(this.idName),
typeValue: this.model.get(this.typeName),
foreignScope: this.foreignScope,
foreignScopeList: this.foreignScopeList,

View File

@@ -61,7 +61,7 @@ Espo.define('views/fields/link', 'views/fields/base', function (Dep) {
idName: this.idName,
nameName: this.nameName,
idValue: this.model.get(this.idName),
nameValue: this.model.get(this.nameName),
nameValue: this.model.has(this.nameName) ? this.model.get(this.nameName) : this.model.get(this.idName),
foreignScope: this.foreignScope
}, Dep.prototype.data.call(this));
},

View File

@@ -26,11 +26,11 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
Espo.define('Views.Stream.Notes.Update', 'Views.Stream.Note', function (Dep) {
Espo.define('views/stream/notes/update', 'views/stream/note', function (Dep) {
return Dep.extend({
template: 'stream.notes.update',
template: 'stream/notes/update',
messageName: 'update',
@@ -89,7 +89,8 @@ Espo.define('Views.Stream.Notes.Update', 'Views.Stream.Note', function (Dep) {
defs: {
name: field
},
mode: 'list'
mode: 'detail',
inlineEditDisabled: true
});
this.createView(field + 'Became', viewName, {
model: modelBecame,
@@ -97,7 +98,8 @@ Espo.define('Views.Stream.Notes.Update', 'Views.Stream.Note', function (Dep) {
defs: {
name: field
},
mode: 'list'
mode: 'detail',
inlineEditDisabled: true
});
this.fieldsArr.push({