Removed Delete Invoice
This commit is contained in:
parent
dcce02a029
commit
e39c06a4a1
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
<td class="actions">
|
||||
<?php echo $html->link(__('View', true), array('action' => 'view', $invoice['Invoice']['id'])); ?>
|
||||
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $invoice['Invoice']['id'])); ?>
|
||||
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $invoice['Invoice']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $invoice['Invoice']['id'])); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue