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

This commit is contained in:
2017-11-10 04:13:36 +02:00
parent 4eac7d54f0
commit 48d821628d
4 changed files with 26 additions and 6 deletions

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);