Fixed gh-748 so that tags are able to be added to the list admin view. Makes the adding of tags dynamic based on tag field in the view.
This commit is contained in:
@ -92,12 +92,6 @@ class ###Component###Model###View### extends JModelAdmin
|
||||
$registry->loadString($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
}###METHOD_GET_ITEM###
|
||||
|
||||
if (!empty($item->id))
|
||||
{
|
||||
$item->tags = new JHelperTags;
|
||||
$item->tags->getTagIds($item->id, 'com_###component###.###view###');
|
||||
}
|
||||
}###LINKEDVIEWGLOBAL###
|
||||
|
||||
return $item;
|
||||
|
@ -92,12 +92,6 @@ class ###Component###Model###View### extends JModelAdmin
|
||||
$registry->loadString($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
}###METHOD_GET_ITEM###
|
||||
|
||||
if (!empty($item->id))
|
||||
{
|
||||
$item->tags = new JHelperTags;
|
||||
$item->tags->getTagIds($item->id, 'com_###component###.###view###');
|
||||
}
|
||||
}###LINKEDVIEWGLOBAL###
|
||||
|
||||
return $item;
|
||||
|
Reference in New Issue
Block a user