Resolved gh-179 to unset fields that may not be in some DB's
This commit is contained in:
parent
4eac7d54f0
commit
48d821628d
@ -111,11 +111,11 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 8th November, 2017
|
||||
+ *Last Build*: 10th November, 2017
|
||||
+ *Version*: 2.6.3
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
+ *Line count*: **159673**
|
||||
+ *Line count*: **159693**
|
||||
+ *File count*: **1002**
|
||||
+ *Folder count*: **165**
|
||||
|
||||
|
@ -111,11 +111,11 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 8th November, 2017
|
||||
+ *Last Build*: 10th November, 2017
|
||||
+ *Version*: 2.6.3
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
+ *Line count*: **159673**
|
||||
+ *Line count*: **159693**
|
||||
+ *File count*: **1002**
|
||||
+ *Folder count*: **165**
|
||||
|
||||
|
@ -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);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.2" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>8th November, 2017</creationDate>
|
||||
<creationDate>10th November, 2017</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>http://vdm.bz/component-builder</authorUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user