Announcement

Collapse
No announcement yet.

Workflow Emails Everyone Since Upgrade to 5.2.5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Workflow Emails Everyone Since Upgrade to 5.2.5

    Workflow Emails Everyone Since Upgrade to 5.2.5
    Can't figure out why....

    Attached Files

  • #2
    https://github.com/espocrm/espocrm/b...ream.php#L1024
    did you change this method?
    How many followers does your entity have indeed?

    Comment


    • #3
      No, I did not change the method, the Account only had the assigned user as the follower with 1 other person.
      But for some reason emailed everyone and I don't know why.
      All I did was upgrade from 5.2.4 to version 5.2.5

      Comment


      • #4
        We reproduce this. While we looking for a reason, please modify the file application/Espo/Modules/Advanced/Core/Workflow/Helper.php
        getUsersEmailAddress method
        before "return" insert the row
        if (count($userList) == 0) return [];

        Comment


        • khopper
          khopper commented
          Editing a comment
          Added on Row 180 of Helper.php

          public function getUsersEmailAddress(array $userList)
          {
          if (count($userList) == 0) return [];
          return $this->getEmailAddressesForEntity('User', $userList);
          }
      Working...
      X