[Solved] Email sending rules problems with comment due automated action

Post Reply
Eric
Posts: 181
Joined: 25 Jun 2020, 13:40
Name: Eric Henrich
Location: Germany

[Solved] Email sending rules problems with comment due automated action

Post by Eric »

We have now conducted some further tests and are surprised by the results. We ask that this behavior be examined because, to our understanding, there is an error here, if not several.

We have created personal demo and accounts and provided email addresses for testing.

What we want to do and the procedre:

1. User fills out a form that needs to be "denied" or "approved".
2. User selects a person who should "approve" or "deny".
3. Form is submitted.
4. User who should "approve" or "deny" receives an email about this entry.
5. Person who should "approve" or "deny" sees 2 buttons in the list view, "denied" and "approve".
6. If they click "deny", automated action changes status to "denied", also they should enter a comment as the reason for rejection and the status changes to "denied".
6.1 An email through Email Sending Rule for "Notify when field value changes" should send a message to the creator (Created by) with the comment because status changed to "denied". A surprising default email is also sent in which this comment is included.
7. If they click "approve", the status changes to "approved", also automated action.
7.1 An email through Email Sending Rule for "Notify when field value changes" to "approved" should send a message to the creator (Created by).

Point 6.1 is not doing what is expected. In the email sent via Email Sending Rule, the comment that was entered is missing! The email that is sent as a default email with the comment cannot be suppressed, it seems?

https://pdemo.rukovoditel.pro/3.4/index ... mo_id=2243 Entity "The Request"

In personal Demo you can see Email sending rules:
Image

Image

Image

Additional E-Mail with Comment we dont want
Image
Last edited by Eric on 05 Jun 2023, 23:49, edited 1 time in total.
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Email sending rules problems with comment due automated action

Post by support »

Found issue.
1) Replace next files:

Code: Select all

plugins\ext\classes\processes\processes.php
modules\items\actions\items.php
includes\functions\app.php
2) Then for the field "Created by" turn on option "Disable notifications" too. Then default notification will stop.

3) In Email Option page turn on option "Copy Sender?" then email rules will send to creator.

Let me know if everything is ok now.
Attachments
app.zip
(13.57 KiB) Downloaded 19 times
items.zip
(5.67 KiB) Downloaded 20 times
processes.zip
(14.95 KiB) Downloaded 21 times
Eric
Posts: 181
Joined: 25 Jun 2020, 13:40
Name: Eric Henrich
Location: Germany

Re: Email sending rules problems with comment due automated action

Post by Eric »

The Comment from User who "Denied" ist still missing in the Mail about this entry.

Edit: Comment is existing now, tried with wrong options before...
Post Reply