From a5cd37f39bcef0cae504462628300ea794851e59 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 2 Jan 2014 23:00:16 +1100 Subject: [PATCH] Update staff array on event save --- sportspress-actions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sportspress-actions.php b/sportspress-actions.php index c3faa82f..704f205d 100644 --- a/sportspress-actions.php +++ b/sportspress-actions.php @@ -170,6 +170,9 @@ function sp_save_post( $post_id ) { // Update player array sp_update_post_meta_recursive( $post_id, 'sp_player', sp_array_value( $_POST, 'sp_player', array() ) ); + // Update staff array + sp_update_post_meta_recursive( $post_id, 'sp_staff', sp_array_value( $_POST, 'sp_staff', array() ) ); + break; case ( 'sp_result' ):