Skip to content

Conversation

jenswittmann
Copy link
Contributor

I have a resource with a TV connected as a multiselect and a delimiter output. The value in the cache is stored as an array:

'connectedProjects' => 
  array (
    0 => 'connectedProjects',
    1 => 
    array (
      0 => '210',
      1 => '224',
      2 => '253',
    ),
    2 => 'delim',
    3 => NULL,
    4 => 'listbox-multiple',
  ),

But when looking in the resource cache it should be like this:

'connectedProjects' => 
  array (
    0 => 'connectedProjects',
    1 => "210||224||253",
    2 => 'delim',
    3 => NULL,
    4 => 'listbox-multiple',
  ),

So I try to render the TV before saving the cache. There may be a nicer way, but this works for me now.

Side issue: I have an output filter for a pdoMenu snippet. But when using this with a value as an array, it ends in a fatal error because an array is given, not a string (PHP 8.3). This causes the preview to crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant