diff --git a/controllers/invoices_controller.php b/controllers/invoices_controller.php index 8cea9c63..424e821c 100644 --- a/controllers/invoices_controller.php +++ b/controllers/invoices_controller.php @@ -91,7 +91,7 @@ class InvoicesController extends AppController { $this->set(compact('users', 'jobs')); } - function delete($id = null) { + /*function delete($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid id for Invoice', true)); $this->redirect(array('action'=>'index')); @@ -100,7 +100,7 @@ class InvoicesController extends AppController { $this->Session->setFlash(__('Invoice deleted', true)); $this->redirect(array('action'=>'index')); } - } + }*/ } diff --git a/views/invoices/index.ctp b/views/invoices/index.ctp index 80a94dab..4199f1f6 100644 --- a/views/invoices/index.ctp +++ b/views/invoices/index.ctp @@ -79,7 +79,7 @@ link(__('View', true), array('action' => 'view', $invoice['Invoice']['id'])); ?> link(__('Edit', true), array('action' => 'edit', $invoice['Invoice']['id'])); ?> - link(__('Delete', true), array('action' => 'delete', $invoice['Invoice']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $invoice['Invoice']['id'])); ?> +