diff --git a/componentbuildercomponentdashboardheaderstabs.xml b/componentbuildercomponentdashboardheaderstabs.xml index ead3d65..40505b0 100644 --- a/componentbuildercomponentdashboardheaderstabs.xml +++ b/componentbuildercomponentdashboardheaderstabs.xml @@ -1,14 +1,14 @@ - PLG_CONTENTCOMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS - 10th March, 2022 + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS + 9th May, 2022 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt 1.0.1 - PLG_CONTENTCOMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_XML_DESCRIPTION script.php diff --git a/fields/powers.php b/fields/powers.php index 9e362c6..37c857a 100644 --- a/fields/powers.php +++ b/fields/powers.php @@ -82,7 +82,7 @@ class JFormFieldPowers extends JFormFieldList if ($user->authorise('power.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build Create button - $button[] = ' '; } @@ -90,7 +90,7 @@ class JFormFieldPowers extends JFormFieldList if ($user->authorise('power.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. { // build edit button - $button[] = ''; // build script $script[] = " @@ -144,7 +144,7 @@ class JFormFieldPowers extends JFormFieldList // Get the databse object. $db = JFactory::getDBO(); $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.system_name','a.name','a.type','a.power_version'),array('id','power_admin_component_system_name','name','type','version'))); + $query->select($db->quoteName(array('a.guid','a.system_name','a.name','a.type','a.power_version'),array('guid','power_admin_component_system_name','name','type','version'))); $query->from($db->quoteName('#__componentbuilder_power', 'a')); $query->where($db->quoteName('a.published') . ' >= 1'); $query->order('a.system_name ASC'); @@ -165,17 +165,17 @@ class JFormFieldPowers extends JFormFieldList // if none was found, we add this to set an alternative to set custom if (!$items) { - $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND')); + $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_NONE_FOUND')); } if ($items) { if ($this->multiple === false) { - $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENTCOMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION')); + $options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS_SELECT_AN_OPTION')); } foreach($items as $item) { - $options[] = JHtml::_('select.option', $item->id, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')'); + $options[] = JHtml::_('select.option', $item->guid, $item->power_admin_component_system_name . ' [' . $item->type . ' ' . $item->name . '] (v' . $item->version . ')'); } } return $options; diff --git a/forms/component_dashboard.xml b/forms/component_dashboard.xml index a3aac16..04a604d 100644 --- a/forms/component_dashboard.xml +++ b/forms/component_dashboard.xml @@ -3,7 +3,7 @@
-
@@ -12,22 +12,22 @@ + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_NO + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_YES + PLG_CONTENT_COMPONENTBUILDERCOMPONENTDASHBOARDHEADERSTABS_NO