Removed JError from admin views, and compiler. Added edit link to each field in admin view. Removed linked to admin view from fields view
This commit is contained in:
@ -46,13 +46,6 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
|
||||
ComponentbuilderHelper::addSubmenu('custom_codes');
|
||||
}
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
JError::raiseError(500, implode('<br />', $errors));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Assign data to the view
|
||||
$this->items = $this->get('Items');
|
||||
$this->pagination = $this->get('Pagination');
|
||||
@ -80,6 +73,12 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
|
||||
$this->batchDisplay = JHtmlBatch_::render();
|
||||
}
|
||||
}
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
|
Reference in New Issue
Block a user