Bug #19

Invoice details without $invoice_id error

Added by AvantaR - over 3 years ago. Updated over 3 years ago.

Status:Closed Start:
Priority:High Due date:
Assigned to:Jeremy Bush % Done:

0%

Category:Invoices
Target version:Alpha Release
Resolution:fixed

Description

61        public function view($invoice_id)
62        {
63            $invoice = new Invoice_Model($invoice_id);
64    
65            $this->template->body = new View('invoice/view');
66            $this->template->body->invoice = new Invoice_Model($invoice_id);
67        }

If $invoice_id is NULL we get an error. Please add some code to check whether $invoice_id variable isn't NULL.

Associated revisions

Revision 35
Added by Jeremy Bush over 3 years ago

Fixing #19. Thanks AvantaR!

History

Updated by Jeremy Bush over 3 years ago

  • Resolution set to fixed

Fixed in r34.

Also available in: Atom PDF