Poll Result User Data ‘other_info’ typo.
-
Hello,
I’ve been using this plugin, and the user name column was empty in the poll results, even though I had checked the form user data “Name” on the poll settings.
After looking at the database, in the “other_info” column, I found out that the json key for the username was ‘name’. However, in the plugin’s file includes/lists/class-poll-maker-each-results-poll-list-table.php , line 295, the key used is ‘Name’ :
return (isset($other_info['Name']) && !empty($other_info['Name'])) ? $other_info['Name'] : '';
So I had to change the three occurences of ” $other_info[‘Name’] ” in the file into $other_info[‘name’], like this :
return (isset($other_info['name']) && !empty($other_info['name'])) ? $other_info['name'] : '';
and now it works.
Please update your plugin with this typo fix.
Also you may want to add an option to display the phone number data, as right now it’s not displayed anywhere in the poll results, even though we can give the option to the user to input his phone number in the poll’s form. Thank you.
- The topic ‘Poll Result User Data ‘other_info’ typo.’ is closed to new replies.