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

BC break (or bug) with sending POST request with array #261

Open
tristanbes opened this issue Aug 21, 2018 · 2 comments
Open

BC break (or bug) with sending POST request with array #261

tristanbes opened this issue Aug 21, 2018 · 2 comments

Comments

@tristanbes
Copy link

tristanbes commented Aug 21, 2018

Hi

Scenario: Check that an email is sent when submitting a contact form
    When I send a "POST" request to "/contact_form/send?site_id=2&contact_form_id=1" with parameters:
        | key              | value                       |
        | field[1]         | Astley                      |
        | field[2]         | Rick                        |
        | field[3]         | rick.astley@roll.com        |
        | field[4]         | 0123456789                  |
        | field[5]         | I'm never gonna give you up |
        | field[6]         | 30 rue du mauvais goût      |
        | field[7]         | 69001                       |
        | field[8]         | Lyon                        |
        | message          | never gonna let you down    |
        | privacyAgreement | 1                           |
    Then the response status code should be 200
    And a mail should have been sent to "[email protected]"

On the controller part:
dump($request->request->get('field'));

Before version v3.2.0:

array:8 [
  1 => "Astley"
  2 => "Rick"
  3 => "[email protected]"
  4 => "0123456789"
  5 => "I'm never gonna give you up"
  6 => "30 rue du mauvais goût"
  7 => "69001"
  8 => "Lyon"
]

Since version v3.2.0

null
@sanpii
Copy link
Member

sanpii commented Aug 21, 2018

Could be the commit a585f0b that introduce the bug?

@tristanbes
Copy link
Author

maybe /shrug

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

2 participants