Resolved gh-179 to unset fields that may not be in some DB's

This commit is contained in:
Llewellyn committed 2017-11-10 04:13:36 +02:00
1 parent 4eac7d54f0
commit 48d821628d
4 files changed
+26 -6

No files matched your search

+21 -1
View File
@@ -1233,7 +1233,27 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
**/
protected function prepItem($item, &$type, $action)
{
// actions to effect both
// remove access
if (isset($item->access))
{
unset($item->access);
}
// remove metadata
if (isset($item->metadata))
{
unset($item->metadata);
}
// remove metadesc
if (isset($item->metadesc))
{
unset($item->metadesc);
}
// remove metakey
if (isset($item->metakey))
{
unset($item->metakey);
}
// actions to effect all
if (isset($item->asset_id))
{
unset($item->asset_id);