From e05db7599a4c6ea3085b0da7c960ce002dd42491 Mon Sep 17 00:00:00 2001 From: Vladimir Ralev Date: Wed, 1 Sep 2021 13:46:02 +0300 Subject: [PATCH] The Flow argument is already the child of the module being skipped, taking the child of of the Flow arg is going to skip the child of the skipped level which is incorrect --- applications/callflow/src/module/cf_group_pickup_feature.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/callflow/src/module/cf_group_pickup_feature.erl b/applications/callflow/src/module/cf_group_pickup_feature.erl index 74d3f3baa3c..428bbb8b4e7 100644 --- a/applications/callflow/src/module/cf_group_pickup_feature.erl +++ b/applications/callflow/src/module/cf_group_pickup_feature.erl @@ -134,6 +134,6 @@ params_from_data('undefined', _, _) -> params_from_data(_Other, _, Flow) -> lager:debug("skipping module ~p, looking at children", [_Other]), Child = kz_json:get_json_value([<<"children">>, <<"_">>], Flow), - Data = kz_json:get_json_value([<<"data">>], Child), - Module = kz_json:get_ne_binary_value([<<"module">>], Child), + Data = kz_json:get_json_value([<<"data">>], Flow), + Module = kz_json:get_ne_binary_value([<<"module">>], Flow), params_from_data(Module, Data, Child).