do not allow to combing sub fields and main field in detail layout

This commit is contained in:
Yuri Kuznetsov
2025-06-27 19:45:13 +03:00
parent 82028df342
commit de92d50386
3 changed files with 11 additions and 2 deletions

View File

@@ -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;

View File

@@ -50,7 +50,8 @@
"provider": "Google",
"height": 300,
"exportDisabled": true,
"importDisabled": true
"importDisabled": true,
"detailLayoutIncompatibleFieldList": []
}
},
"params": [

View File

@@ -85,7 +85,8 @@
"type": "currencyConverted",
"readOnly": true,
"importDisabled": true,
"customizationInlineEditDisabledDisabled": true
"customizationInlineEditDisabledDisabled": true,
"detailLayoutIncompatibleFieldList": []
}
},
"converterClassName": "Espo\\Core\\Utils\\Database\\Orm\\FieldConverters\\Currency",