Sheernox
New Member
Env: ClientExec 7.2.2 (ionCube), PHP 8.5.10, MariaDB 11.8.9
Where:
Bug: The handler ignores the response and shows the "invoices sent" dialog for any HTTP 200. The action answers with a JSON envelope (
Repro:
Where:
templates/default/views/billing/invoicepublic/allinvoices.phtml line 267, the success handler of the Email request (action actoninvoice, actionbutton inv-send-smart).Bug: The handler ignores the response and shows the "invoices sent" dialog for any HTTP 200. The action answers with a JSON envelope (
"success": true when it sends), but an expired session, or any request ClientExec answers with a page such as the sign-in page, also returns 200 and gets the same dialog. Nothing was emailed and the client is told it was.Repro:
- Sign in as a client with an unpaid invoice and open Billing > Invoices.
- In another tab, sign out (or let the session expire).
- Back in the first tab, select the invoice, click Email and confirm. The sent dialog appears; no email is sent.