fix mass-update layouy and leads side panel

This commit is contained in:
yuri
2015-02-23 16:54:06 +02:00
parent 2ccb9c3a17
commit f05e3924ff
2 changed files with 4 additions and 4 deletions
@@ -35,13 +35,13 @@ Espo.define('Crm:Views.Lead.Record.DetailSide', 'Views.Record.DetailSide', funct
mode: 'detail',
}
};
if (this.model.get('createdAccountId')) {
if (this.model.get('createdAccountId') && this.model.get('createdAccountName')) {
panel.options.fields.push('createdAccount');
}
if (this.model.get('createdContactId')) {
if (this.model.get('createdContactId') && this.model.get('createdContactName')) {
panel.options.fields.push('createdContact');
}
if (this.model.get('createdOpportunityId')) {
if (this.model.get('createdOpportunityId') && this.model.get('createdOpportunityName')) {
panel.options.fields.push('createdOpportunity');
}
if (panel.options.fields.length) {
@@ -96,7 +96,7 @@ Espo.define('Views.Admin.Layouts.MassUpdate', 'Views.Admin.Layouts.Rows', functi
if (this.ignoreTypeList.indexOf(model.getFieldParam(name, 'type')) != -1) {
return false;
}
return !model.getFieldParam(name, 'disabled') && !model.getFieldParam(name, 'layoutMassUpdateDisabled');
return !model.getFieldParam(name, 'disabled') && !model.getFieldParam(name, 'layoutMassUpdateDisabled') && !model.getFieldParam(name, 'readOnly');
}
});