60406870 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 233090e3
......@@ -238,9 +238,8 @@ function wpa_34245() {
// if query var is not present just return
if ( isset( $_REQUEST['my_listener'] ) || 'update_office_email' == $_REQUEST['my_listener'] ){
$users = get_users( array( 'fields' => array( 'ID' ) ) );
foreach($users as $user){
error_log("Updating user: ".$user->ID);
updte_office_email($user->ID);
foreach($users as $user){
update_office_email($user->ID);
}
}else if ( isset( $_REQUEST['my_listener'] ) || 'update_fax' == $_REQUEST['my_listener'] ){
$users = get_users( array( 'fields' => array( 'ID' ) ) );
......@@ -281,8 +280,6 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) {
if( have_rows('departments_and_branches', 'option') ):
while ( have_rows('departments_and_branches' , 'option') ) : the_row();
if(get_sub_field('departmentbranch') == $department_branch ):
error_log("Found branch: ".$department_branch);
error_log("Found branch: ".$field);
return get_sub_field($field);
endif;
endwhile;
......