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:
@ -47,13 +47,6 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
$this->canDo = ComponentbuilderHelper::getActions('compiler');
|
||||
// Initialise variables.
|
||||
$this->items = $this->get('Items');
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
JError::raiseError(500, implode(PHP_EOL, $errors));
|
||||
return false;
|
||||
}
|
||||
if ($this->getLayout() !== 'modal')
|
||||
{
|
||||
// Include helper submenu
|
||||
@ -74,6 +67,13 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
// set the document
|
||||
$this->setDocument();
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("
|
||||
", $errors), 500);
|
||||
}
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user