Take guest emails

Post

Posted
Rating:
#5120 (In Topic #1035)
Joe

Ticket system

I'm trying to locate the setting to require guest emails during ticket creation. I remember seeing it, but searching the Adminzone didn't yield any results.

Right now it's marked as "optional" on the ticket page but if they're a guest, it would be silly not to take their email – otherwise I have no way to contact them!

Post

Posted
Rating:
#5121
Look on the edit ticket type form, of each ticket type.

Post

Posted
Rating:
#5125
Joe

Chris Graham said

Look on the edit ticket type form, of each ticket type.

Got it. But, I think there may be a bug somewhere. Though all my ticket types require guest emails, it always shows (optional) on the support ticket screen. Looking at the code in COMMENTS_POSTING_FORM, {EMAIL_OPTIONAL} always returns 1 regardless of the "Guest e-mail addresses mandatory" setting.

The actual functionality of REQUIRING the guests email address works - I get an error after submission if I don't supply an email address. It's just that the ticket screen is showing it as optional so there's something up with {EMAIL_OPTIONAL}.

Post

Posted
Rating:
#5129
Right, you did find a bug.
Make the change to tickets.php as shown in this commit:
https://github.com/ocproducts/composr/commit/d0bee2500e2f7fd53584452dcfeecdb07b7cd5fa

I changed the text for the option in the admin UI, too, but ignore that change (I actually further tweaked it in my next commit based on what I confirmed you discovered).

In the ideal world the UI text would update as the ticket type selection is changed, but that'd require too much work at this point.
4 guests and 0 members have recently viewed this.