Index: t3lib/class.t3lib_tceforms.php =================================================================== --- t3lib/class.t3lib_tceforms.php (Revision 7641) +++ t3lib/class.t3lib_tceforms.php (Arbeitskopie) @@ -2192,6 +2192,7 @@ // Creating the element: $noList = isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'list'); + $noDelete = isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'delete'); $params = array( 'size' => $size, 'dontShowMoveIcons' => ($maxitems<=1), @@ -2203,6 +2204,7 @@ 'readOnly' => $disabled, 'noBrowser' => $noList || isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'browser'), 'noList' => $noList, + 'noDelete' => $noDelete, ); $item.= $this->dbFileIcons($PA['itemFormElName'],'file',implode(',',$tempFT),$itemArray,'',$params,$PA['onFocus']); @@ -3657,6 +3659,8 @@ 'backPath, 'gfx/insert5.png', 'width="14" height="14"') . ' border="0" ' . t3lib_BEfunc::titleAltAttrib(sprintf($this->getLL('l_clipInsert_' . ($mode == 'db' ? 'db' : 'file')), count($clipElements))) . ' />' . ''; } + } + if (!$params['readOnly'] && !$params['noDelete']) { $rOnClick = $rOnClickInline.'setFormValueManipulate(\''.$fName.'\',\'Remove\'); return false'; $icons['L'][]=''. 'backPath,'gfx/group_clear.gif','width="14" height="14"').' border="0" '.t3lib_BEfunc::titleAltAttrib($this->getLL('l_remove_selected')).' />'.