Bug #19
Invoice details without $invoice_id error
| Status: | Closed | Start: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assigned to: | % 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
Fixing #19. Thanks AvantaR!