Added the basic code for controller and model for gh-53
This commit is contained in:
@ -151,7 +151,7 @@ class JFormFieldAdminviews extends JFormFieldList
|
||||
{
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.id','a.system_name'),array('id','before_system_name')));
|
||||
$query->select($db->quoteName(array('a.id','a.system_name'),array('id','adminview_system_name')));
|
||||
$query->from($db->quoteName('#__componentbuilder_admin_view', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' = 1');
|
||||
$query->order('a.system_name ASC');
|
||||
@ -163,7 +163,7 @@ class JFormFieldAdminviews extends JFormFieldList
|
||||
$options[] = JHtml::_('select.option', '', 'Select an option');
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->before_system_name);
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->adminview_system_name);
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
|
Reference in New Issue
Block a user