-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent duplicate record in the Master Data Management - Synchronizat…
…ion Tables list (#26133) Resolves #26105 The loop adding related tables to the synchronization list is triggered before the initial table requested by the user is added, therefore it will be added to the list of related tables if any of the relations points back to the table itself. An additional check is added in the loop precondition to handle this case. Fixes [AB#534785](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/534785)
- Loading branch information
Showing
6 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Apps/W1/MasterDataManagement/test library/src/MDMTestTableA.Table.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
table 139757 "MDM Test Table A" | ||
{ | ||
DataClassification = SystemMetadata; | ||
|
||
fields | ||
{ | ||
field(1; "Primary Key"; Code[20]) | ||
{ | ||
Caption = 'Primary Key'; | ||
} | ||
field(2; "Self-Reference Field"; Code[20]) | ||
{ | ||
Caption = 'Self-Reference Field'; | ||
TableRelation = "MDM Test Table A"."Primary Key"; | ||
} | ||
field(3; "TableB Reference"; Code[20]) | ||
{ | ||
Caption = 'TableB Reference'; | ||
TableRelation = "MDM Test Table B"."Primary Key"; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(PK; "Primary Key") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
Apps/W1/MasterDataManagement/test library/src/MDMTestTableB.Table.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
table 139758 "MDM Test Table B" | ||
{ | ||
DataClassification = SystemMetadata; | ||
|
||
fields | ||
{ | ||
field(1; "Primary Key"; Code[20]) | ||
{ | ||
Caption = 'Primary Key'; | ||
} | ||
field(3; "TableA Reference"; Code[20]) | ||
{ | ||
Caption = 'TableA Reference'; | ||
TableRelation = "MDM Test Table A"."Primary Key"; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(PK; "Primary Key") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters