Skip to content
This repository has been archived by the owner on Apr 28, 2019. It is now read-only.

customer_message.errors is always true on commit #168

Open
ulitiy opened this issue Feb 10, 2015 · 1 comment
Open

customer_message.errors is always true on commit #168

ulitiy opened this issue Feb 10, 2015 · 1 comment

Comments

@ulitiy
Copy link

ulitiy commented Feb 10, 2015

http://doc.locomotivecms.com/guides/create-a-contact-form

{% if customer_message.errors %} will always be true, so that example is incorrect. It works only because of different success/error callbacks.

@ulitiy ulitiy changed the title customer_message.errors is always true customer_message.errors is always true on commit Feb 10, 2015
@ulitiy
Copy link
Author

ulitiy commented Feb 10, 2015

So the temporary solution is to use

  {% capture err %}{{ customer_message.errors | first}}{% endcapture %}
  {% if err != "" %}

that doesn't seem right

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant