Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4771

Payment Reminder invoice fail messenger delivery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce:

      1. Configure the messenger payment notice
      2. Enable error reporting
      3. Create 2 clients with different phone numbers
      4. Create an invoice the is due for a payment reminder
      5. Run the cron
      6. See a fatal error

      In core/Automation/Tasks/Task/PaymentReminders.php around line 438 change:

              $this->MessengerManager->send($options['email_template'], $tags, [$invoice->client->user_id]);
      

      To

              $this->MessengerManager->send($options['email_template'], $tags, [$client->user_id]);
      

        Activity

        Hide
        jonathan Jonathan Reissmueller added a comment -

        This bug may cause all invoice delivery messages to be sent to a single user.

        Show
        jonathan Jonathan Reissmueller added a comment - This bug may cause all invoice delivery messages to be sent to a single user.

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Nov/22

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 42 minutes
              42m

                Agile