You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important! The problem relates to the type Input TV type listbox-multiple. If there are two or more IDs in options. They are passed to the render chunk as an Array, which leads to an error.
Solution below:
function renderChunk($tpl, $properties = array(), $getChunk = true, $printIfemty = true) {
$propertiestype = array();
foreach ($properties as $key => $prop) {
if (is_array($prop) && count($prop) > 0) {
$propertiestype[$key] = implode(',',$prop);
} else {
$propertiestype[$key] = $prop;
}
}
$properties = $propertiestype;
$value = $this->parseChunk($tpl, $properties, $getChunk, $printIfemty);
$this->modx->getParser();
/*parse all non-cacheable tags and remove unprocessed tags, if you want to parse only cacheable tags set param 3 as false*/
$this->modx->parser->processElementTags('', $value, true, true, '[[', ']]', array());
return $value;
}
Do not thank!
The text was updated successfully, but these errors were encountered:
Important! The problem relates to the type Input TV type listbox-multiple. If there are two or more IDs in options. They are passed to the render chunk as an Array, which leads to an error.
Solution below:
Do not thank!
The text was updated successfully, but these errors were encountered: