removed linked components from admin views.
This commit is contained in:
@ -198,7 +198,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
$item->tags->getTagIds($item->id, 'com_componentbuilder.custom_admin_view');
|
||||
}
|
||||
}
|
||||
$this->addcustom_admin_viewsvvvx = $item->id;
|
||||
$this->addcustom_admin_viewsvvvw = $item->id;
|
||||
|
||||
return $item;
|
||||
}
|
||||
@ -208,7 +208,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVyflinked_components()
|
||||
public function getVyelinked_components()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -265,15 +265,15 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
||||
}
|
||||
}
|
||||
|
||||
// Filter by addcustom_admin_viewsvvvx in this Repetable Field
|
||||
if (ComponentbuilderHelper::checkArray($items) && isset($this->addcustom_admin_viewsvvvx))
|
||||
// Filter by addcustom_admin_viewsvvvw in this Repetable Field
|
||||
if (ComponentbuilderHelper::checkArray($items) && isset($this->addcustom_admin_viewsvvvw))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
if (isset($item->addcustom_admin_views) && ComponentbuilderHelper::checkJson($item->addcustom_admin_views))
|
||||
{
|
||||
$tmpArray = json_decode($item->addcustom_admin_views,true);
|
||||
if (!isset($tmpArray['customadminview']) || !ComponentbuilderHelper::checkArray($tmpArray['customadminview']) || !in_array($this->addcustom_admin_viewsvvvx, $tmpArray['customadminview']))
|
||||
if (!isset($tmpArray['customadminview']) || !ComponentbuilderHelper::checkArray($tmpArray['customadminview']) || !in_array($this->addcustom_admin_viewsvvvw, $tmpArray['customadminview']))
|
||||
{
|
||||
unset($items[$nr]);
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user