Open omarkasem opened 1 month ago
@Mwalek, please test.
@mrcasual I found a few issues:
Warning: Undefined array key "is_active" in /.../wp-content/plugins/gravityview/includes/fields/class-gravityview-field-user-activation.php on line 149
Fatal error: Uncaught Error: Call to undefined function gf_user_registration() in /.../wp-content/plugins/gravityview/templates/fields/field-user_activation.php:15
@omarkasem, please address the QA issues. Thank you.
@Mwalek 1,2 Done 3- I can't recreate that, I tried with table, list and it's working for me and showing.
I'll test it!
@omarkasem I noticed that a different warning is now shown if a form without a user registration feed is attached to a View.
Warning: Undefined array key "addon_slug" in /.../public_html/wp-content/plugins/gravityview/includes/fields/class-gravityview-field-user-activation.php on line 149
To reproduce this warning, create a View, select a form without a user registration feed, add a User Activation field to the multiple entries tab, save the changes and visit the View on the front end.
Concerning cases where the user registration addon is not installed, I'd like to suggest the following message "Install/activate Gravity Forms User Registration Add-On".
I could no longer reproduce item number 3 (Activate button missing for unactivated users in multiple/single entry tabs). ✅
@Mwalek Thanks for noticing that, Both are fixed now with the latest commit
@omarkasem works like a charm, thank you!
cc. @mrcasual
I don't see the point in having "Invalid activation key." for existing users that were previously activated in some way. This appears like an error, and you know, if you display something that looks like an error, the users will ask about it.
Would it be too costly (performance wise) to check every entry against existing users and in case they exist (as users) just display the same "The user is already active." message? In the case of my screenshot below, these two entries belong are associated with users created by the UR feed in the past. I'm not sure if there's a link we can establish to check that. Check if the user listed as the Entry Creator exists, perhaps?
Also, what is our text style for these messages? I don't like these messages ending with a period. Is that correct?
Before: The user is already active.
After: The user is already active
@rafaehlers Good point, I added a check now to see if the user already exist before the check for activation key and i also removed the dots at the end of line.
Please test and let me know what you think
💾 Build file (cc3146ee0).