From cec566176d89e5e7fee36fbcc637b44a5921264a Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 27 Apr 2018 15:45:50 +0200 Subject: [PATCH] Fixed admin_fields_conditions edit view to insure an array gets given to the count function --- README.md | 4 ++-- admin/README.txt | 4 ++-- admin/helpers/compiler/a_Get.php | 2 +- admin/models/forms/admin_fields.xml | 3 ++- admin/models/forms/admin_view.xml | 4 +++- admin/models/forms/component_admin_views.xml | 3 ++- admin/models/forms/custom_admin_view.xml | 4 +++- admin/models/forms/site_view.xml | 4 +++- admin/views/admin_fields_conditions/tmpl/edit.php | 2 +- componentbuilder.xml | 2 +- 10 files changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 660f9cddf..77adf52c6 100644 --- a/README.md +++ b/README.md @@ -126,11 +126,11 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](http://joomlacomponentbuilder.com) + *First Build*: 30th April, 2015 -+ *Last Build*: 26th April, 2018 ++ *Last Build*: 27th April, 2018 + *Version*: 2.7.6 + *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*: **193266** ++ *Line count*: **193274** + *Field count*: **1027** + *File count*: **1201** + *Folder count*: **193** diff --git a/admin/README.txt b/admin/README.txt index 660f9cddf..77adf52c6 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -126,11 +126,11 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](http://joomlacomponentbuilder.com) + *First Build*: 30th April, 2015 -+ *Last Build*: 26th April, 2018 ++ *Last Build*: 27th April, 2018 + *Version*: 2.7.6 + *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*: **193266** ++ *Line count*: **193274** + *Field count*: **1027** + *File count*: **1201** + *Folder count*: **193** diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index add968cbf..8b08bdfa6 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -2116,7 +2116,7 @@ class Get // Create a new query object. $query = $this->db->getQuery(true); - // Order it by the ordering field. + // Select all the values in the field $query->select('a.*'); $query->select($this->db->quoteName(array('c.name', 'c.properties'), array('type_name', 'properties'))); $query->from('#__componentbuilder_field AS a'); diff --git a/admin/models/forms/admin_fields.xml b/admin/models/forms/admin_fields.xml index 244c5cad5..04fd703af 100644 --- a/admin/models/forms/admin_fields.xml +++ b/admin/models/forms/admin_fields.xml @@ -105,7 +105,8 @@ layout="joomla.form.field.subform.repeatable-table" multiple="true" description="COM_COMPONENTBUILDER_ADMIN_FIELDS_ADDFIELDS_DESCRIPTION" - icon="list"> + icon="list" + min="1">