Skip to content
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

Revert the changes to the "file uploaded" check #7039

Merged
merged 2 commits into from Mar 21, 2024

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Mar 21, 2024

With file uploads you can (could) control via 'uploaded' => true/false whether the file will be attached in the email sent by Contao\Form or whether it will include a link instead.

However the check for this was changed in #4364 from

if ($file['uploaded'] ?? null)

to

if (isset($file['uploaded']))

meaning that you cannot control this behavior via true/false anymore. Now the file will always be inserted as a link only as soon as the 'uploaded' key is present in the files array.

This PR reverts the check to the previous behavior, so that this can be controlled more easily again.

@fritzmg fritzmg added the bug label Mar 21, 2024
@fritzmg fritzmg added this to the 5.3 milestone Mar 21, 2024
@fritzmg fritzmg self-assigned this Mar 21, 2024
@fritzmg fritzmg changed the title revert the file uploaded check Revert the file uploaded check Mar 21, 2024
@fritzmg
Copy link
Contributor Author

fritzmg commented Mar 21, 2024

Failing test is unrelated.

@leofeyer leofeyer changed the title Revert the file uploaded check Revert the changes to the "file uploaded" check Mar 21, 2024
@leofeyer leofeyer merged commit 5f9007e into contao:5.3 Mar 21, 2024
16 of 17 checks passed
@leofeyer
Copy link
Member

Thank you @fritzmg.

@fritzmg fritzmg deleted the revert-form-upload-change branch March 21, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants