Skip to content

Conversation

@backportbot
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 <[email protected]>
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

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
@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.

4 participants