Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Contact_Name, Contact_Email on add form

Quote Reply
Contact_Name, Contact_Email on add form
Hi,

I changed Contact_Name, Contact_Email to Not Null->Yes (so user is required to input something).

If I left those fields blank on the add form the error message (Column Contact_Name cannot be left blank) will not be generated, it will allow empty fields.
But those fields are visible when I validate links (default user name/email).

This is not the case when I input new links through admin, also modify form is behaving correctly.

Thanks

Last edited by:

Payooo: Oct 4, 2006, 6:12 AM
Quote Reply
Re: [Payooo] Contact_Name, Contact_Email on add form In reply to
The code defaults to using the user's name and e-mail if they don't enter anything. According to the comment in the code, that's due to backwards compatibility. To override this behaviour, you'll have to check it yourself using a plugin on user_add_link (and I guess modify as well).

Adrian