Improvements to invoice
This commit is contained in:
@@ -185,6 +185,9 @@ $(document).ready(function() {
|
||||
public function action_view() {
|
||||
$po = ORM::factory('Product',$this->request->param('id'));
|
||||
|
||||
if (! $po->loaded())
|
||||
throw HTTP_Exception::factory(403,'Product either doesnt exist, or you are not authorised to see it');
|
||||
|
||||
Block::factory()
|
||||
->title(sprintf('%s: %s',_('Current Services Using this Product'),$po->title()))
|
||||
->title_icon('icon-th-list')
|
||||
|
Reference in New Issue
Block a user