link one duplicate ignore

This commit is contained in:
Yurii
2026-03-10 20:22:41 +02:00
parent 8a03ad6240
commit 7c25f2a8fe
4 changed files with 10 additions and 4 deletions
@@ -134,7 +134,7 @@ class EntityDuplicator
{ {
$type = $fieldDefs->getType(); $type = $fieldDefs->getType();
if (in_array($type, [FieldType::AUTOINCREMENT, FieldType::NUMBER])) { if (in_array($type, [FieldType::AUTOINCREMENT, FieldType::NUMBER, FieldType::LINK_ONE])) {
return true; return true;
} }
@@ -216,19 +216,22 @@
"createdAccount": { "createdAccount": {
"type": "link", "type": "link",
"layoutDetailDisabled": true, "layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true "layoutMassUpdateDisabled": true,
"duplicateIgnore": true
}, },
"createdContact": { "createdContact": {
"type": "link", "type": "link",
"layoutDetailDisabled": true, "layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true, "layoutMassUpdateDisabled": true,
"view": "crm:views/lead/fields/created-contact" "view": "crm:views/lead/fields/created-contact",
"duplicateIgnore": true
}, },
"createdOpportunity": { "createdOpportunity": {
"type": "link", "type": "link",
"layoutDetailDisabled": true, "layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true, "layoutMassUpdateDisabled": true,
"view": "crm:views/lead/fields/created-opportunity" "view": "crm:views/lead/fields/created-opportunity",
"duplicateIgnore": true
}, },
"targetLists": { "targetLists": {
"type": "linkMultiple", "type": "linkMultiple",
@@ -394,6 +394,7 @@
"tooltipText" "tooltipText"
], ],
"audited": true, "audited": true,
"duplicateIgnore": true,
"dynamicLogicVisibleDisabled": true "dynamicLogicVisibleDisabled": true
}, },
"accounts": { "accounts": {
@@ -343,6 +343,7 @@ class LinkManager
'fields' => [ 'fields' => [
$linkForeign => [ $linkForeign => [
FieldParam::TYPE => FieldType::LINK, FieldParam::TYPE => FieldType::LINK,
'duplicateIgnore' => true,
], ],
], ],
'links' => [ 'links' => [
@@ -359,6 +360,7 @@ class LinkManager
'fields' => [ 'fields' => [
$link => [ $link => [
FieldParam::TYPE => FieldType::LINK, FieldParam::TYPE => FieldType::LINK,
'duplicateIgnore' => true,
], ],
], ],
'links' => [ 'links' => [