New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a submission within a Form listener doesn't work #982

edalzell opened this Issue Sep 23, 2016 · 0 comments


None yet
3 participants

edalzell commented Sep 23, 2016

Expected behaviour

I have a form listener that creates an new submission in the Form.submission.created event and I would like my submission to be saved.

Actual behaviour

Because the code is so fast, my submission gets the same id (timestamp) as the original form submission and therefore is not saved (duplicate filename).

Steps to reproduce

  1. make a form listener that creates and saves a submission
  2. check the forms folder, you'll see it's not there

Server configuration

Operating system:
macOS sierra

Web server:

PHP version:

Statamic version:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment