Inconsistent behaviour in personal contact form for users created before versus after contact module is enabled

Created on 17 June 2011, over 13 years ago
Updated 11 April 2024, 11 months ago

The code in the contact module shows a difference in behaviour between users who haven't saved their personal contact form preference when the setting for 'Enable the personal contact form by default for new users.' is set to "true".

Users created before the module was enabled will have their contact forms disabled, even when they didn't make a selection. Users created after the module was enabled will have their contact forms enabled, also when they didn't make a selection yet.

The current behaviour is very annoying when the module is first enabled on a site with a large number of existing users. There is no easy way to go in and enable the form for all users aside from writing a custom PHP script. It makes more sense to use the default value when the user hasn't explicitly made a choice. The attached patch does that.

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
Contact 

Last updated 17 days ago

Created by

🇳🇱Netherlands Peter Bex

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024