diff --git a/classes/fields/pick.php b/classes/fields/pick.php index 1a83dfc29b..08f6d4abe1 100644 --- a/classes/fields/pick.php +++ b/classes/fields/pick.php @@ -2743,7 +2743,7 @@ public function get_object_data( $object_params = null ) { $params['limit'] = apply_filters( 'pods_form_ui_field_pick_autocomplete_limit', $limit, $name, $value, $options, $pod, $id, $object_params ); - if ( is_array( $value ) && $params['limit'] < count( $value ) ) { + if ( -1 !== (int) $params['limit'] && is_array( $value ) && $params['limit'] < count( $value ) ) { $params['limit'] = count( $value ); } @@ -2894,7 +2894,7 @@ public function get_object_data( $object_params = null ) { $params['where'] .= "`t`.`{$search_data->field_id}` IN ( {$ids} )"; try { - $results = $search_data->select( $params ); + $results = array_merge( $results, $search_data->select( $params ) ); } catch ( Exception $exception ) { if ( pods_is_debug_display() ) { pods_error_exception( $exception );