packetfence icon indicating copy to clipboard operation
packetfence copied to clipboard

email template: unexpected behavior with default sponsor source

Open nqb opened this issue 6 years ago • 7 comments

When you use the default sponsor source (with no mandatory fields other than the guest's email), emails sent to sponsor will be unclear due to missing firstname/lastname fields: screenshot from 2018-10-09 15-36-39

In this situation, template should use guest's email address at beginning of the sentence.

nqb avatar Oct 09 '18 19:10 nqb

It also presents problems with the "Activate Access" button. it does not write the activation_uri variable, which makes it impossible to use this feature. It seems to me that I should have a higher priority.

mendoza-conicet avatar Mar 13 '19 15:03 mendoza-conicet

@mendoza-conicet: 8.3 version ? Apply maintenance patches and retry..

nqb avatar Mar 14 '19 09:03 nqb

@nqb i'm using 8.3, after apply maintenance patches work well!

mendoza-conicet avatar Mar 14 '19 15:03 mendoza-conicet

This seems to be fixed can we close?

jrouzierinverse avatar Aug 07 '20 18:08 jrouzierinverse

Reopening, issue still presents.

nqb avatar Feb 01 '21 07:02 nqb

@nqb should #7069 close this one also?

jrouzierinverse avatar Aug 31 '22 18:08 jrouzierinverse

@jrouzierinverse, I look quickly but it seems that this issue is caused by the fact that html/captive-portal/templates/emails/emails-guest_sponsor_activation.html use firstname and lastname before the word "requested".

Because these fields are empty (as you can see on the screenshot), there is nothing to display.

IMHO, if we use a tag like firstname and lastname in an email template, we need to be sure these fields are mandatory in the form where we asked them. So I don't think #7069 solve this use case.

nqb avatar Aug 31 '22 18:08 nqb