diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fcbabbc6..725e39484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v3.2.0-beta9 + +- Fix [Set String Value] in placeholder table to store the value as a base64 string. + # v3.2.0-beta8 - Add Factory class to the J5 Event class. #1093 diff --git a/README.md b/README.md index 7dd323cf1..ab554089f 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.0-beta8) 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.0-beta9) 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) @@ -145,12 +145,12 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 20th March, 2024 -+ *Version*: 3.2.0-beta8 ++ *Version*: 3.2.0-beta9 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **738862** ++ *Line count*: **738901** + *Field count*: **2078** -+ *File count*: **5202** ++ *File count*: **5203** + *Folder count*: **459** > 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 7dd323cf1..ab554089f 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.0-beta8) 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.0-beta9) 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) @@ -145,12 +145,12 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 20th March, 2024 -+ *Version*: 3.2.0-beta8 ++ *Version*: 3.2.0-beta9 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **738862** ++ *Line count*: **738901** + *Field count*: **2078** -+ *File count*: **5202** ++ *File count*: **5203** + *Folder count*: **459** > 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/placeholder.php b/admin/models/placeholder.php index a7d4787b6..936c497ba 100644 --- a/admin/models/placeholder.php +++ b/admin/models/placeholder.php @@ -163,6 +163,12 @@ class ComponentbuilderModelPlaceholder extends AdminModel $item->metadata = $registry->toArray(); } + if (!empty($item->value)) + { + // base64 Decode value. + $item->value = base64_decode($item->value); + } + if (empty($item->id)) { @@ -893,6 +899,12 @@ class ComponentbuilderModelPlaceholder extends AdminModel // add the padding (needed) $data['target'] = '[[[' . trim($data['target']) . ']]]'; + // Set the value string to base64 string. + if (isset($data['value'])) + { + $data['value'] = base64_encode($data['value']); + } + // Set the Params Items to data if (isset($data['params']) && is_array($data['params'])) { diff --git a/admin/models/placeholders.php b/admin/models/placeholders.php index 20dd854db..c3b7e8931 100644 --- a/admin/models/placeholders.php +++ b/admin/models/placeholders.php @@ -142,6 +142,8 @@ class ComponentbuilderModelPlaceholders extends ListModel continue; } + // decode value + $item->value = base64_decode($item->value); } } @@ -307,6 +309,8 @@ class ComponentbuilderModelPlaceholders extends ListModel continue; } + // decode value + $item->value = base64_decode($item->value); // unset the values we don't want exported. unset($item->asset_id); unset($item->checked_out); diff --git a/admin/sql/updates/mysql/3.2.0-beta8.sql b/admin/sql/updates/mysql/3.2.0-beta8.sql new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/admin/sql/updates/mysql/3.2.0-beta8.sql @@ -0,0 +1 @@ + diff --git a/componentbuilder.xml b/componentbuilder.xml index 671b93fed..58a86bd4c 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -7,9 +7,9 @@ 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.0-beta8 + 3.2.0-beta9 Component Builder (v.3.2.0-beta8) +

Component Builder (v.3.2.0-beta9)

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 784eaacfa..73784e07d 100644 --- a/componentbuilder_update_server.xml +++ b/componentbuilder_update_server.xml @@ -1667,4 +1667,22 @@ https://dev.vdm.io + + Component Builder + Builds Complex Joomla Components + pkg_component_builder + package + site + 3.2.0-beta9 + https://dev.vdm.io + + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.0-beta9.zip + + + beta + + Llewellyn van der Merwe + https://dev.vdm.io + + \ No newline at end of file diff --git a/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Table.php b/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Table.php index b235f51eb..a69d9af12 100644 --- a/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Table.php +++ b/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Table.php @@ -4059,7 +4059,7 @@ class Table extends BaseTable implements Tableinterface 'type' => 'textarea', 'title' => false, 'list' => 'placeholders', - 'store' => NULL, + 'store' => 'base64', 'tab_name' => 'Details', ], ], diff --git a/script.php b/script.php index 852dda463..59ffef8c5 100644 --- a/script.php +++ b/script.php @@ -9618,7 +9618,7 @@ class Com_ComponentbuilderInstallerScript echo '

-

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

'; +

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

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