removed linked components from admin views.

This commit is contained in:
2017-10-30 21:19:39 +02:00
parent 306a9b9613
commit 5553e2b822
46 changed files with 487 additions and 744 deletions

View File

@ -129,7 +129,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_componentbuilder.fieldtype');
}
}
$this->fieldtypevvvz = $item->id;
$this->fieldtypevvvy = $item->id;
return $item;
}
@ -139,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVzxfields()
public function getVzwfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -159,15 +159,15 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
$query->select($db->quoteName('g.name','fieldtype_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'g') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by fieldtypevvvz global.
$fieldtypevvvz = $this->fieldtypevvvz;
if (is_numeric($fieldtypevvvz ))
// Filter by fieldtypevvvy global.
$fieldtypevvvy = $this->fieldtypevvvy;
if (is_numeric($fieldtypevvvy ))
{
$query->where('a.fieldtype = ' . (int) $fieldtypevvvz );
$query->where('a.fieldtype = ' . (int) $fieldtypevvvy );
}
elseif (is_string($fieldtypevvvz))
elseif (is_string($fieldtypevvvy))
{
$query->where('a.fieldtype = ' . $db->quote($fieldtypevvvz));
$query->where('a.fieldtype = ' . $db->quote($fieldtypevvvy));
}
else
{
@ -223,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVzxfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVzwfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVzxfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVzwfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVzxfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVzwfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVzxfields($item->store, 'store');
$item->store = $this->selectionTranslationVzwfields($item->store, 'store');
}
}
@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVzxfields($value,$name)
public function selectionTranslationVzwfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')