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();
if (in_array($type, [FieldType::AUTOINCREMENT, FieldType::NUMBER])) {
if (in_array($type, [FieldType::AUTOINCREMENT, FieldType::NUMBER, FieldType::LINK_ONE])) {
return true;
}
@@ -216,19 +216,22 @@
"createdAccount": {
"type": "link",
"layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true
"layoutMassUpdateDisabled": true,
"duplicateIgnore": true
},
"createdContact": {
"type": "link",
"layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true,
"view": "crm:views/lead/fields/created-contact"
"view": "crm:views/lead/fields/created-contact",
"duplicateIgnore": true
},
"createdOpportunity": {
"type": "link",
"layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true,
"view": "crm:views/lead/fields/created-opportunity"
"view": "crm:views/lead/fields/created-opportunity",
"duplicateIgnore": true
},
"targetLists": {
"type": "linkMultiple",
@@ -394,6 +394,7 @@
"tooltipText"
],
"audited": true,
"duplicateIgnore": true,
"dynamicLogicVisibleDisabled": true
},
"accounts": {
@@ -343,6 +343,7 @@ class LinkManager
'fields' => [
$linkForeign => [
FieldParam::TYPE => FieldType::LINK,
'duplicateIgnore' => true,
],
],
'links' => [
@@ -359,6 +360,7 @@ class LinkManager
'fields' => [
$link => [
FieldParam::TYPE => FieldType::LINK,
'duplicateIgnore' => true,
],
],
'links' => [