mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
do not allow to combing sub fields and main field in detail layout
This commit is contained in:
@@ -103,6 +103,13 @@ class BuilderHelper
|
||||
$subName = Util::getNaming($field, $subField, $naming);
|
||||
|
||||
$output[$subName] = array_merge($copiedParams, $subParams);
|
||||
|
||||
// A trick to allow some fields to be combined with the main field.
|
||||
if (array_key_exists('detailLayoutIncompatibleFieldList', $output[$subName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$output[$subName]['detailLayoutIncompatibleFieldList'] = [$field];
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
"provider": "Google",
|
||||
"height": 300,
|
||||
"exportDisabled": true,
|
||||
"importDisabled": true
|
||||
"importDisabled": true,
|
||||
"detailLayoutIncompatibleFieldList": []
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
|
||||
@@ -85,7 +85,8 @@
|
||||
"type": "currencyConverted",
|
||||
"readOnly": true,
|
||||
"importDisabled": true,
|
||||
"customizationInlineEditDisabledDisabled": true
|
||||
"customizationInlineEditDisabledDisabled": true,
|
||||
"detailLayoutIncompatibleFieldList": []
|
||||
}
|
||||
},
|
||||
"converterClassName": "Espo\\Core\\Utils\\Database\\Orm\\FieldConverters\\Currency",
|
||||
|
||||
Reference in New Issue
Block a user