Skip to content

Commit

Permalink
Retain location radius data that has previously been entered if locat…
Browse files Browse the repository at this point in the history
…ion type has switched
  • Loading branch information
egar01n authored and KitPitcairn committed Nov 24, 2020
1 parent a7ba62a commit 59253a3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,10 @@ public static function save( $post_id, $post ) {
if ( !empty($existing_applicant_profile) && isset($existing_applicant_profile['location_text']) && $existing_applicant_profile['location_text'] != '' )
{
$applicant_profile['location_text'] = ph_clean($existing_applicant_profile['location_text']);
if ( isset($existing_applicant_profile['location_radius']) && $existing_applicant_profile['location_radius'] != '' )
{
$applicant_profile['location_radius'] = ph_clean($existing_applicant_profile['location_radius']);
}
}
}
else
Expand Down

0 comments on commit 59253a3

Please sign in to comment.