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

[stable30] fix(ShareAPI): Send mails for mail shares by default #48881

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Oct 24, 2024

Backport of PR #48381

It looks like, the frontend it needs to provide the `sendMail` param
for the backend to decide wether mails would be sent.

Our UI does not have that at the moment so it should default to sending
emails always for mail shares.

Not exactly sure how this was handled earlier but this is a good starting point.

Resolves : #48012

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
if ($sendMail === 'true' || $sendMail === 'false') {
if (is_null($sendMail)) {
// Define a default behavior when sendMail is not provided
if ($shareType === IShare::TYPE_EMAIL && strlen($shareWith) !== 0) {

Check notice

Code scanning / Psalm

PossiblyNullArgument Note

Argument 1 of strlen cannot be null, possibly null value provided
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to add this #48882 to the backport

@provokateurin provokateurin merged commit e46f180 into stable30 Oct 25, 2024
171 checks passed
@provokateurin provokateurin deleted the backport/48381/stable30 branch October 25, 2024 06:26
@Altahrim Altahrim mentioned this pull request Oct 30, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants