qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
1 additions
and
4 deletions
| ... | @@ -239,8 +239,7 @@ function wpa_34245() { | ... | @@ -239,8 +239,7 @@ function wpa_34245() { |
| 239 | if ( isset( $_REQUEST['my_listener'] ) || 'update_office_email' == $_REQUEST['my_listener'] ){ | 239 | if ( isset( $_REQUEST['my_listener'] ) || 'update_office_email' == $_REQUEST['my_listener'] ){ |
| 240 | $users = get_users( array( 'fields' => array( 'ID' ) ) ); | 240 | $users = get_users( array( 'fields' => array( 'ID' ) ) ); |
| 241 | foreach($users as $user){ | 241 | foreach($users as $user){ |
| 242 | error_log("Updating user: ".$user->ID); | 242 | update_office_email($user->ID); |
| 243 | updte_office_email($user->ID); | ||
| 244 | } | 243 | } |
| 245 | }else if ( isset( $_REQUEST['my_listener'] ) || 'update_fax' == $_REQUEST['my_listener'] ){ | 244 | }else if ( isset( $_REQUEST['my_listener'] ) || 'update_fax' == $_REQUEST['my_listener'] ){ |
| 246 | $users = get_users( array( 'fields' => array( 'ID' ) ) ); | 245 | $users = get_users( array( 'fields' => array( 'ID' ) ) ); |
| ... | @@ -281,8 +280,6 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { | ... | @@ -281,8 +280,6 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { |
| 281 | if( have_rows('departments_and_branches', 'option') ): | 280 | if( have_rows('departments_and_branches', 'option') ): |
| 282 | while ( have_rows('departments_and_branches' , 'option') ) : the_row(); | 281 | while ( have_rows('departments_and_branches' , 'option') ) : the_row(); |
| 283 | if(get_sub_field('departmentbranch') == $department_branch ): | 282 | if(get_sub_field('departmentbranch') == $department_branch ): |
| 284 | error_log("Found branch: ".$department_branch); | ||
| 285 | error_log("Found branch: ".$field); | ||
| 286 | return get_sub_field($field); | 283 | return get_sub_field($field); |
| 287 | endif; | 284 | endif; |
| 288 | endwhile; | 285 | endwhile; | ... | ... |
-
Please register or sign in to post a comment