Fix manual event performance error

This commit is contained in:
Brian Miyaji
2016-04-01 16:16:58 +11:00
parent 7499fe0503
commit f3a7ce5001

View File

@@ -29,7 +29,7 @@ class SP_Meta_Box_Event_Performance {
$manual = false;
// Determine if we need checkboxes
if ( $manual && $i == 0 )
if ( $manual )
$has_checkboxes = true;
else
$has_checkboxes = false;
@@ -179,7 +179,7 @@ class SP_Meta_Box_Event_Performance {
?>
<div>
<p><strong><?php echo get_the_title( $team_id ); ?> &mdash; <?php echo $section_label; ?></strong></p>
<?php self::table( $labels[ $section_id ], $columns, $data[ $section_id ], $team_id, $has_checkboxes, $positions, $status, $section_id, $formats, $order, $numbers ); ?>
<?php self::table( $labels[ $section_id ], $columns, $data[ $section_id ], $team_id, ( $has_checkboxes && 0 === $i ), $positions, $status, $section_id, $formats, $order, $numbers ); ?>
<?php do_action( 'sportspress_after_event_performance_table_admin', $labels[ $section_id ], $columns, $data[ $section_id ], $team_id ); ?>
</div>
<?php