Fixes erroneous clipboard behaviour related to type data
foreach ($actions as $actionData) {
// get accepted objects
$typeName = $actionData['object']->getTypeName();
- if (!isset($this->markedItems[$typeName])) continue;
+ if (!isset($this->markedItems[$typeName]) || empty($this->markedItems[$typeName])) continue;
- $editorData[$typeName] = array(
- 'label' => $actionData['object']->getEditorLabel($this->markedItems[$typeName]),
- 'items' => array()
- );
-
$typeData = array();
if (isset($containerData[$typeName])) {
$typeData = $containerData[$typeName];