mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
Merge pull request #44 from PepperDash/feature/destinationLists-merge
add 'destinationLists' object to merge method
This commit is contained in:
commit
76443f0825
1 changed files with 6 additions and 0 deletions
|
|
@ -93,6 +93,12 @@ namespace PepperDash.Core.Config
|
||||||
else
|
else
|
||||||
merged.Add("sourceLists", Merge(template["sourceLists"], system["sourceLists"], "sourceLists"));
|
merged.Add("sourceLists", Merge(template["sourceLists"], system["sourceLists"], "sourceLists"));
|
||||||
|
|
||||||
|
if (system["destinationLists"] == null)
|
||||||
|
merged.Add("destinationLists", template["destinationLists"]);
|
||||||
|
else
|
||||||
|
merged.Add("destinationLists",
|
||||||
|
Merge(template["destinationLists"], system["destinationLists"], "destinationLists"));
|
||||||
|
|
||||||
// Template tie lines take precedence. Config tool doesn't do them at system
|
// Template tie lines take precedence. Config tool doesn't do them at system
|
||||||
// level anyway...
|
// level anyway...
|
||||||
if (template["tieLines"] != null)
|
if (template["tieLines"] != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue