No Invoice ID in subject when sending email

InvoicePlane version 1.5.9

Just updated from 1.5.2 to 1.5.9.
1.5.2. had the problem when mailing a new invoice that there was no Invoice ID assigned to the saved invoice.
This issue was resolved in 1.5.9.
But now there is no invoice id after the # in de email subject.

Where can i fix this?

The subject comes from the form

modules/mailer/controllers/Mailer.php

public function send_invoice($invoice_id)
{
            ...
    $pdf_template = $this->input->post('pdf_template');
    $subject = $this->input->post('subject');
    $body = $this->input->post('body');
            ...
}
1 Like