- fixed custom callback member directories filters with child dropdown filters;

This commit is contained in:
Mykyta Synelnikov
2023-10-13 15:35:39 +03:00
parent 217bfe819b
commit 3ccb9cf619
5 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
);
if ( ! empty( $values_array ) ) {
$parent_dropdown = isset( $arr_options['field']['parent_dropdown_relationship'] ) ? $arr_options['field']['parent_dropdown_relationship'] : '';
$parent_dropdown = isset( $arr_options['post']['parent_option_name'] ) ? $arr_options['post']['parent_option_name'] : '';
$arr_options['items'] = call_user_func( $ajax_source_func, $parent_dropdown );
if ( array_keys( $arr_options['items'] ) !== range( 0, count( $arr_options['items'] ) - 1 ) ) {