Skip to content

Commit

Permalink
Users: On multisite fix selecting a contact for an existing user.
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Oct 3, 2018
1 parent 9bfc398 commit f1413da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dt-users/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static function save_user_filters( $filters ){
public function custom_user_profile_fields( $user ){
$contact_id = "";
$contact_title = "";
if ( $user != "add-new-user" ) {
if ( $user != "add-new-user" && $user != "add-existing-user" && isset( $user->ID ) ) {
$contact_id = get_user_option( "corresponds_to_contact", $user->ID );
if ( $contact_id ){
$contact = get_post( $contact_id );
Expand Down

0 comments on commit f1413da

Please sign in to comment.