From e39c06a4a115db889f6e65f5f66cc58dcdc38725 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Fri, 16 Jul 2010 14:35:13 +1000 Subject: [PATCH] Removed Delete Invoice --- controllers/invoices_controller.php | 4 ++-- views/invoices/index.ctp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'])); ?> +