Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

page.contact.liquid error data #334

Closed
highpanda opened this issue Oct 31, 2017 · 1 comment
Closed

page.contact.liquid error data #334

highpanda opened this issue Oct 31, 2017 · 1 comment
Milestone

Comments

@highpanda
Copy link

Problem

When the user generates an error with the contact form, the user's data that they attempted to submit isn't inserted back into the form. The data from the "contact[body]" is.

Replication steps

Submit the form with the email field blank.

More Information

I've fixed this by changing
value="{% if form[phone] %}{{ form[phone] }}{% elsif customer %}{{ customer.phone }}{% endif %}"

to
value="{% if form.phone %}{{ form.phone }}{% elsif customer %}{{ customer.phone }}{% endif %}"

However, I don't know if this will break anything else.

@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants