Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix referencing of ACF fields
  • Loading branch information
szk11001 committed Sep 2, 2015
1 parent 9cc871d commit 91ae8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uc-people.js
Expand Up @@ -13,9 +13,9 @@ jQuery(document).ready(function($){
$('#uc_people_lookup_metabox p.howto').text("Person found");
var fields = ['first_name', 'last_name', 'phone', 'email'];
fields.forEach(function(el,i,a){
$('#acf-field-'+el).val("");
$('#acf-field_'+el).val("");
if( response.hasOwnProperty(el) ){
$('#acf-field-'+el).val( response[el] );
$('#acf-field_'+el).val( response[el] );
}
});
} else {
Expand Down

0 comments on commit 91ae8ac

Please sign in to comment.