I have a routine that searches for an existing customer, based on their member email address. I'm passing the email address as an embed variable:
{embed="delivery/charter_customer_form" cust_email="{email}"}
The variable returns the address correctly. If I put {embed:cust_email}
in the template, it displays the correct address.
However, when I plug it into the channel entry tag, I get no results, even I though I know for a fact that there is a match there:
{exp:channel:entries channel="customers" search:customer_email="{embed:cust_email}" dynamic="no" limit="1"}
Also, if I replace the variable with the hard-coded address, it returns the entry I'm looking for.
Am I overlooking something?
{exp:channel:entries channel="customers" search:customer_email="{email}" dynamic="no" limit="1" parse="outward"}