Workflow Emails Everyone Since Upgrade to 5.2.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khopper
    Senior Member
    • Sep 2017
    • 329

    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
  • tanya
    Senior Member
    • Jun 2014
    • 4308

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

    Comment

    • khopper
      Senior Member
      • Sep 2017
      • 329

      #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

      • tanya
        Senior Member
        • Jun 2014
        • 4308

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