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

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

@tristanbes

Description

@tristanbes

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 "rick.astley@roll.com"

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

Before version v3.2.0:

array:8 [
  1 => "Astley"
  2 => "Rick"
  3 => "rick.astley@roll.com"
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions