Release of v5.0.0-alpha6

Fix [Set String Value] in placeholder table to store the value as a base64 string.
This commit is contained in:
2024-03-20 15:36:42 +02:00
parent ac3e230272
commit 8548530b6d
12 changed files with 59 additions and 22 deletions

View File

@ -195,6 +195,12 @@ class PlaceholderModel extends AdminModel
$item->metadata = $registry->toArray();
}
if (!empty($item->value))
{
// base64 Decode value.
$item->value = base64_decode($item->value);
}
if (empty($item->id))
{
@ -946,6 +952,12 @@ class PlaceholderModel 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']))
{