233090e3 by Jeff Balicki

update_office_email

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent b34b602e
...@@ -255,7 +255,7 @@ function wpa_34245() { ...@@ -255,7 +255,7 @@ function wpa_34245() {
255 } 255 }
256 256
257 add_action( 'profile_update', function ( $user_id, $old_user_data ) { 257 add_action( 'profile_update', function ( $user_id, $old_user_data ) {
258 //update_office_email($user_id); 258 update_office_email($user_id);
259 update_branch_fax($user_id); 259 update_branch_fax($user_id);
260 }, 10, 2 ); 260 }, 10, 2 );
261 261
...@@ -277,7 +277,7 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { ...@@ -277,7 +277,7 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) {
277 277
278 278
279 function find_branch_info($department_branch, $field){ 279 function find_branch_info($department_branch, $field){
280 280
281 if( have_rows('departments_and_branches', 'option') ): 281 if( have_rows('departments_and_branches', 'option') ):
282 while ( have_rows('departments_and_branches' , 'option') ) : the_row(); 282 while ( have_rows('departments_and_branches' , 'option') ) : the_row();
283 if(get_sub_field('departmentbranch') == $department_branch ): 283 if(get_sub_field('departmentbranch') == $department_branch ):
......