Save team played per season per league from player profile edit screen

This commit is contained in:
Brian Miyaji
2014-01-15 18:08:46 +11:00
parent 5bbd3a179f
commit 62501fd76a
4 changed files with 36 additions and 20 deletions

View File

@@ -109,9 +109,9 @@ function sportspress_player_stats_meta( $post ) {
<?php
endif;
list( $columns, $data, $placeholders, $merged ) = sportspress_get_player_statistics_data( $post->ID, $league->term_id, true );
list( $columns, $data, $seasons_teams ) = sportspress_get_player_statistics_data( $post->ID, $league->term_id, true );
sportspress_edit_player_statistics_table( $league->term_id, $columns, $data, $placeholders );
sportspress_edit_player_statistics_table( $league->term_id, $columns, $data, $seasons_teams );
endforeach;
}

View File

@@ -61,7 +61,7 @@ function sportspress_team_columns_meta( $post ) {
<?php
endif;
list( $columns, $data, $data, $leagues_seasons ) = sportspress_get_team_columns_data( $post->ID, $league_id, true );
list( $columns, $data, $leagues_seasons ) = sportspress_get_team_columns_data( $post->ID, $league_id, true );
sportspress_edit_team_columns_table( $league_id, $columns, $data, $leagues_seasons );