From 2b39af94a25df5830f3ab7df61ae3c101c315b8a Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 7 Jul 2018 00:01:30 +0200 Subject: [PATCH] fixed gh-312 that caused an error when creating a new component. --- README.md | 2 +- admin/README.txt | 2 +- admin/models/ajax.php | 2 +- admin/models/joomla_component.php | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b46cd8f26..590df44ec 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Version*: 2.8.2 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **186160** ++ *Line count*: **186163** + *Field count*: **1058** + *File count*: **1238** + *Folder count*: **197** diff --git a/admin/README.txt b/admin/README.txt index b46cd8f26..590df44ec 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -129,7 +129,7 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Version*: 2.8.2 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **186160** ++ *Line count*: **186163** + *Field count*: **1058** + *File count*: **1238** + *Folder count*: **197** diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 9cd953e1f..049225593 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -193,7 +193,7 @@ class ComponentbuilderModelAjax extends JModelList } return $result; } - + protected function hasCurl() { return function_exists('curl_version'); diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php index 27df61260..876798684 100644 --- a/admin/models/joomla_component.php +++ b/admin/models/joomla_component.php @@ -1184,7 +1184,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin } // we check if component should be build from sql file - ComponentbuilderHelper::dynamicBuilder($data, 1); + if (isset($data['buildcomp']) && 1 == $data['buildcomp']) + { + ComponentbuilderHelper::dynamicBuilder($data, 1); + } // Set the Params Items to data if (isset($data['params']) && is_array($data['params']))