• My at least temporary solution:

    In CF7DBPlugin.php after line 794 ($user = null;) I have added the following:

    
    
    		$submission = WPCF7_Submission::get_instance();
    
    		if ( $submission ) {
    			$posted_data = $submission->get_posted_data();
    		}
    
    		$user = $posted_data['userlogin'];
    

    And within all of my forms I have added the following hidden field near the bottom of the forms:

    [hidden userlogin default:user_login]

    This restores the functioning of the program for now. The ‘Submitted Login’ field is restored at line 9999. I am sure there is a better way but this works for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Great, thanks!

    Can I suggest posting that as an issue on the CFDB GitHub page to see if the author will include it in a future release?

    Thread Starter cravaus

    (@cravaus)

    I did. But I think this is only a temporary fix. There should be a better way of obtaining the logged in user. I was looking at Flamingo and I see that it captures the logged in user information in meta data so more work needs to be done to understand this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Submitted Login fix for CF7 4.8’ is closed to new replies.