fixed import error with version is ignored.

This commit is contained in:
2016-03-10 23:23:23 +02:00
parent 0c30fa7f68
commit 306b6b9787
1485 changed files with 244759 additions and 375 deletions

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_views.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage ajax.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage compiler.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage components.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_views.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_get.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_gets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage adminviews.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage articles.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customadminviews.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfilelist.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customgets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dbtables.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamicgets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldsmulti.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage maingets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage siteviews.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_get.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.js

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.js

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_documents.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage import.php
@@ -509,7 +509,6 @@ class ComponentbuilderModelImport extends JModelLegacy
// reset all buckets
$query = $db->getQuery(true);
$fields = array();
$version = false;
// Fields to update.
foreach($row as $key => $cell)
{
@@ -532,7 +531,6 @@ class ComponentbuilderModelImport extends JModelLegacy
if ('version' == $target[$key])
{
$cell = (int) $version + 1;
$version = true;
}
// verify publish authority
if ('published' == $target[$key] && !$canState)
@@ -557,10 +555,6 @@ class ComponentbuilderModelImport extends JModelLegacy
// load the defaults
$fields[] = $db->quoteName('modified_by') . ' = ' . $db->quote($user->id);
$fields[] = $db->quoteName('modified') . ' = ' . $db->quote($todayDate);
if (!$version)
{
$fields[] = $db->quoteName('version') . " = " . (int) $version + 1;
}
// Conditions for which records should be updated.
$conditions = array(
$db->quoteName('id') . ' = ' . $id

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layouts.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_views.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.2
@build 4th March, 2016
@build 10th March, 2016
@created 30th April, 2015
@package Component Builder
@subpackage templates.php