FIX: The player-lists of an event are not restricted to just the team that is selected

This commit is contained in:
savvasha
2020-12-26 22:55:25 +02:00
parent a240b5f4f7
commit 9740e41687

View File

@@ -306,7 +306,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
global $typenow, $wp_query;
if ( $typenow == 'sp_event' ) {
$query->query_vars['meta_query'] = array( 'relation' => 'AND' );
$query->query_vars['meta_query']['relation'] = 'AND';
if ( ! empty( $_GET['team'] ) ) {
$query->query_vars['meta_query'][] = array(