Release of v5.0.0-beta2
Add view list and single name fix. Add component code name fix. Add reset list of powers.
This commit is contained in:
@@ -65,12 +65,17 @@ class PluginsclassmethodsField extends ListField
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
$options = [];
|
||||
if ($items)
|
||||
{
|
||||
$options[] = Html::_('select.option', '', 'Select a method');
|
||||
foreach($items as $item)
|
||||
{
|
||||
if (!isset($item->visibility))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// we are using this code in more then one field JCB custom_code
|
||||
if ('method' === 'method')
|
||||
{
|
||||
@@ -80,6 +85,7 @@ class PluginsclassmethodsField extends ListField
|
||||
{
|
||||
$select = $item->visibility . ' $' . $item->method_name;
|
||||
}
|
||||
|
||||
$options[] = Html::_('select.option', $item->id, $select);
|
||||
}
|
||||
}
|
||||
|
@@ -65,12 +65,17 @@ class PluginsclasspropertiesField extends ListField
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
$options = [];
|
||||
if ($items)
|
||||
{
|
||||
$options[] = Html::_('select.option', '', 'Select a property');
|
||||
foreach($items as $item)
|
||||
{
|
||||
if (!isset($item->visibility))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// we are using this code in more then one field JCB custom_code
|
||||
if ('method' === 'property')
|
||||
{
|
||||
@@ -80,6 +85,7 @@ class PluginsclasspropertiesField extends ListField
|
||||
{
|
||||
$select = $item->visibility . ' $' . $item->property_name;
|
||||
}
|
||||
|
||||
$options[] = Html::_('select.option', $item->id, $select);
|
||||
}
|
||||
}
|
||||
|
@@ -65,12 +65,17 @@ class PowersclassmethodsField extends ListField
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
$options = [];
|
||||
if ($items)
|
||||
{
|
||||
$options[] = Html::_('select.option', '', 'Select a method');
|
||||
foreach($items as $item)
|
||||
{
|
||||
if (!isset($item->visibility))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// we are using this code in more then one field JCB custom_code
|
||||
if ('method' === 'method')
|
||||
{
|
||||
@@ -80,6 +85,7 @@ class PowersclassmethodsField extends ListField
|
||||
{
|
||||
$select = $item->visibility . ' $' . $item->method_name;
|
||||
}
|
||||
|
||||
$options[] = Html::_('select.option', $item->id, $select);
|
||||
}
|
||||
}
|
||||
|
@@ -65,12 +65,17 @@ class PowersclasspropertiesField extends ListField
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
$options = [];
|
||||
if ($items)
|
||||
{
|
||||
$options[] = Html::_('select.option', '', 'Select a property');
|
||||
foreach($items as $item)
|
||||
{
|
||||
if (!isset($item->visibility))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// we are using this code in more then one field JCB custom_code
|
||||
if ('method' === 'property')
|
||||
{
|
||||
@@ -80,6 +85,7 @@ class PowersclasspropertiesField extends ListField
|
||||
{
|
||||
$select = $item->visibility . ' $' . $item->property_name;
|
||||
}
|
||||
|
||||
$options[] = Html::_('select.option', $item->id, $select);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user