Strange bug in email list plugin

gnavarro

Member
Hi,

When using in one form:
  • multiple groups
  • CDD element rendered as multi select drop down with multiple selections when submitted
And when sending emails using the list plugin with the placeholder {CDD element} in the body the results are:

  • If CDD with Always Render to 'No':
    • somelabel1//..*..//somelabel2//..*..//...
  • If CDD with Always Render to 'YES':
    • ? ? ? ? ?somelabel1
    • ? ? ? ? ?somelabel2
    • ...
When the intended is:
? somelabel1
? somelabel2

I've noticed that the number of bullets (?) are being repeated by each form group. So when I unpublished one of the form groups, the {CDD element} repeated less one bullet.

You can verify this in the following list:
http://www.fisiolar.pt/index.php/pt/clientes/contencioso

Click on the 'Pedido de Media??o ERS' email list plugin and than change the email in 'Para' to your email and test the result. You'll see that both {fb_contencioso___tratamentos} and {fb_contencioso___sessoes} are rendering like I just described. Use the FisioLAR site login in my sites.

Am I missing something? Is this a known bug?
 
Last edited:
Yup, bug. Extremely "corner case" though ... literally only affected checkbox joins and CDD's, when not displayed in a list, with "always render" enabled, used in a list email templated.

Fixed in this commit:

https://github.com/Fabrik/fabrik/commit/cd2825a3ae84c614c0451c223358550944c70dae

The other case of getting the //..*..// separated strings when always-render isn't enabled isn't a bug, that's expected behavior. As this is a list plugin, which renders the elements using the list rendering, if the element isn't displayed in the list, and you don't have "always render" enabled, that's what you get - an un-rendered version of the element.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top