Project

General

Profile

Bug #20598 » 0011303_hide_show.diff

Administrator Admin, 2010-05-05 16:06

View differences:

typo3_src-4.2.12/typo3/class.db_list_extra.inc 2010-05-05 15:55:17.000000000 +0200
if ($this->dontShowClipControlPanels) return '';
$ver_uid=$row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid'];
// Initialize:
t3lib_div::loadTCA($table);
$cells=array();
......
$hiddenField = $TCA[$table]['ctrl']['enablecolumns']['disabled'];
if ($permsEdit && $hiddenField && $TCA[$table]['columns'][$hiddenField] && (!$TCA[$table]['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields',$table.':'.$hiddenField))) {
if ($row[$hiddenField]) {
$params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=0';
$params='&data['.$table.']['.$ver_uid.']['.$hiddenField.']=0';
$cells['hide']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$LANG->getLL('unHide'.($table=='pages'?'Page':''),1).'" alt="" />'.
'</a>';
} else {
$params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=1';
$params='&data['.$table.']['.$ver_uid.']['.$hiddenField.']=1';
$cells['hide']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$LANG->getLL('hide'.($table=='pages'?'Page':''),1).'" alt="" />'.
'</a>';
(2-2/3)