SearchKit - Fix adding deep joins
authorColeman Watts <coleman@civicrm.org>
Wed, 13 Jul 2022 15:54:25 +0000 (11:54 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 13 Jul 2022 15:54:25 +0000 (11:54 -0400)
This fixes a UI bug that was preventing joins past a depth of 2 to be added.

ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js

index be2b8a29cddfc7b88075372b4eac237579530131..f9806ad712f455b97cae8f44afa579039ee79111 100644 (file)
               disabled: alias in existingJoins
             };
           if (alias in existingJoins) {
-            opt.children = addEntityJoins(join.entity, (stack ? stack + '_' : '') + alias, baseEntity);
+            opt.children = addEntityJoins(join.entity, alias, baseEntity);
           }
           collection.push(opt);
         }