From 65f236268ccb0549e52d89a636d84edbcde98e5e Mon Sep 17 00:00:00 2001 From: John Pinkyfloyd Date: Mon, 9 Mar 2026 10:04:14 -0700 Subject: [PATCH] Fix attachDefaultChildren to recurse through modifier groups Default-checked items nested inside modifier groups were not being found because the function only looked one level deep. Now it recurses through all child items to find defaults at any depth. Co-Authored-By: Claude Opus 4.5 --- api/orders/setLineItem.cfm | 47 +++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/api/orders/setLineItem.cfm b/api/orders/setLineItem.cfm index 9ba486f..7e68dd0 100644 --- a/api/orders/setLineItem.cfm +++ b/api/orders/setLineItem.cfm @@ -43,13 +43,18 @@ - - + + + + + + + - + - - - - - - + - - direct child: ItemID=#qKids.ID#")> - + + + + add default child: ItemID=#qAllKids.ID#")> + + + + recurse into group: ItemID=#qAllKids.ID#")> + + - template child: ItemID=#qTemplateKids.ID#")> - + + add template child: ItemID=#qTemplateKids.ID#")> + + + recurse into template group: ItemID=#qTemplateKids.ID#")> + +