From 96ce50bc12172f29fb45a5b1313da34b846511ee Mon Sep 17 00:00:00 2001 From: aB0t Date: Mon, 6 May 2024 07:40:18 +0200 Subject: [PATCH] Release of v3.2.1-rc6 Fix the customfolderlist field. #1120. --- CHANGELOG.md | 6 +++++- README.md | 10 +++++----- admin/README.txt | 10 +++++----- admin/models/fields/customfolderlist.php | 8 +++++--- admin/sql/install.mysql.utf8.sql | 3 ++- admin/sql/updates/mysql/3.2.1-rc.sql | 1 + componentbuilder.xml | 6 +++--- componentbuilder_update_server.xml | 22 ++++++++++++++++++++-- script.php | 2 +- 9 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 admin/sql/updates/mysql/3.2.1-rc.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 16a92d2e1..9a71f86db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ -# v3.2.1-rc5 +# v3.2.1-rc6 + +- Fix the customfolderlist field. #1120 + +# v3.2.1-rc - Improved the Schema Table update engine (more) - Fix autoloader timing, and loading. diff --git a/README.md b/README.md index bfb5bfb4e..2fdbe99a4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.1-rc5) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.1-rc6) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,13 +144,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 3rd May, 2024 -+ *Version*: 3.2.1-rc5 ++ *Last Build*: 6th May, 2024 ++ *Version*: 3.2.1-rc6 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **761655** ++ *Line count*: **761681** + *Field count*: **2097** -+ *File count*: **5294** ++ *File count*: **5295** + *Folder count*: **471** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index bfb5bfb4e..2fdbe99a4 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.1-rc5) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.1-rc6) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,13 +144,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 3rd May, 2024 -+ *Version*: 3.2.1-rc5 ++ *Last Build*: 6th May, 2024 ++ *Version*: 3.2.1-rc6 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **761655** ++ *Line count*: **761681** + *Field count*: **2097** -+ *File count*: **5294** ++ *File count*: **5295** + *Folder count*: **471** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com). diff --git a/admin/models/fields/customfolderlist.php b/admin/models/fields/customfolderlist.php index a306f9d08..35410fe1f 100644 --- a/admin/models/fields/customfolderlist.php +++ b/admin/models/fields/customfolderlist.php @@ -15,6 +15,8 @@ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper as Html; +use Joomla\CMS\Component\ComponentHelper; +use Joomla\CMS\Filesystem\Folder; // import the list field type jimport('joomla.form.helper'); @@ -44,12 +46,12 @@ class JFormFieldCustomfolderlist extends JFormFieldList // set the default $options[] = Html::_('select.option', '', Text::sprintf('COM_COMPONENTBUILDER_PLEASE_ADD_FOLDERS_TO_S',$localfolder)); // setup the folder if it does not exist - if (!\JFolder::exists($localfolder)) + if (!Folder::exists($localfolder)) { - \JFolder::create($localfolder); + Folder::create($localfolder); } // now check if there are files in the folder - if ($folders = \JFolder::folders($localfolder)) + if ($folders = Folder::folders($localfolder)) { $options = []; foreach ($folders as $folder) diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index 18795dff9..24f90503f 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -2076,7 +2076,8 @@ INSERT INTO `#__componentbuilder_joomla_power` (`id`, `description`, `guid`, `se (12, 'Class that handles all access authorisation routines.', '2d513d69-8c7c-4dab-bb84-c5ecafb91a9d', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Access\\\\Access\",\"joomla_version\":\"0\"}}', 'JAccess', '', 1, '2024-04-27 12:56:41', '0000-00-00 00:00:00', 1, '', 1, 11), (13, 'Access rules class.', '80425d73-1789-4f59-b49d-1a712611a77a', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Access\\\\Rules\",\"joomla_version\":\"0\"}}', 'JRules', '', 1, '2024-04-27 12:57:12', '0000-00-00 00:00:00', 1, '', 1, 11), (14, 'Rule class.', 'b07d4be5-bbbe-48c9-a2ab-843090a1c0de', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Access\\\\Rule\",\"joomla_version\":\"0\"}}', 'JRule', '', 1, '2024-04-27 12:57:34', '0000-00-00 00:00:00', 1, '', 1, 11), -(15, 'JDate is a class that stores a date and provides logic to manipulate and render that date in a variety of formats.', '3864fa33-ab10-48d5-98ea-5e1397e6a191', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Date\\\\Date\",\"joomla_version\":\"0\"}}', 'JDate', '', 1, '2024-04-27 12:58:11', '0000-00-00 00:00:00', 1, '', 1, 11); +(15, 'JDate is a class that stores a date and provides logic to manipulate and render that date in a variety of formats.', '3864fa33-ab10-48d5-98ea-5e1397e6a191', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Date\\\\Date\",\"joomla_version\":\"0\"}}', 'JDate', '', 1, '2024-04-27 12:58:11', '0000-00-00 00:00:00', 1, '', 1, 11), +(16, '', 'b32954a3-05c3-41a0-8238-85262ad46246', '{\"settings0\":{\"namespace\":\"Joomla\\\\CMS\\\\Filesystem\\\\Folder\",\"joomla_version\":\"0\"}}', 'JFolder', '', 1, '2024-05-06 05:29:46', '0000-00-00 00:00:00', 1, '', 1, 12); -- -- Dumping data for table `#__componentbuilder_admin_view` diff --git a/admin/sql/updates/mysql/3.2.1-rc.sql b/admin/sql/updates/mysql/3.2.1-rc.sql new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/admin/sql/updates/mysql/3.2.1-rc.sql @@ -0,0 +1 @@ + diff --git a/componentbuilder.xml b/componentbuilder.xml index 73ef469fd..68b9c0dee 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -1,15 +1,15 @@ COM_COMPONENTBUILDER - 3rd May, 2024 + 6th May, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 3.2.1-rc5 + 3.2.1-rc6 Component Builder (v.3.2.1-rc5) +

Component Builder (v.3.2.1-rc6)

The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml index 87fcc98c1..4efc207b0 100644 --- a/componentbuilder_update_server.xml +++ b/componentbuilder_update_server.xml @@ -166,10 +166,28 @@ pkg_component_builder package site - 3.2.1-rc5 + 3.2.1-rc https://dev.vdm.io - https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.1-rc5.zip + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.1-rc6.zip + + + releasecandidate + + Llewellyn van der Merwe + https://dev.vdm.io + + + + Component Builder + Builds Complex Joomla Components + pkg_component_builder + package + site + 3.2.1-rc6 + https://dev.vdm.io + + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.1-rc6.zip releasecandidate diff --git a/script.php b/script.php index 87d2ad18c..2582da358 100644 --- a/script.php +++ b/script.php @@ -9810,7 +9810,7 @@ class Com_ComponentbuilderInstallerScript echo '

-

Upgrade to Version 3.2.1-rc5 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 3.2.1-rc6 Was Successful! Let us know if anything is not working as expected.

'; // Set db if not set already. if (!isset($db))