Index: typo3/sysext/version/ws/class.wslib_gui.php =================================================================== --- typo3/sysext/version/ws/class.wslib_gui.php (Revision 8791) +++ typo3/sysext/version/ws/class.wslib_gui.php (Arbeitskopie) @@ -204,10 +204,10 @@ if ($GLOBALS['BE_USER']->workspace !== 0) { $tableHeader .= ''; } - $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('-1') ? '' : ''; - $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('0') ? '' : ''; - $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('1') ? '' : ''; - $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('10') ? '' : ''; + $tableHeader .= ''; + $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('-1') ? '' : ''; + $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('0') ? '' : ''; + $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('1') ? '' : ''; $tableHeader .= ' @@ -1258,7 +1258,7 @@ $raiseOk = !$GLOBALS['BE_USER']->workspaceCannotEditOfflineVersion($table,$rec_off); - if ($raiseOk && $rec_off['t3ver_stage'] != -1 && $GLOBALS['BE_USER']->workspaceCheckStageForCurrent($sId)) { + if ($raiseOk && $rec_off['t3ver_stage'] > 0 && $GLOBALS['BE_USER']->workspaceCheckStageForCurrent($rec_off['t3ver_stage'])) { $onClick = 'var commentTxt=window.prompt("'.$LANG->getLL('explain_reject').'",""); if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand( '&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'. @@ -1280,21 +1280,20 @@ $actionLinks.= ''.$sLabel.''; // Raise - if ($raiseOk && $GLOBALS['BE_USER']->workspaceCheckStageForCurrent($sId)) { + if ($raiseOk && $rec_off['t3ver_stage'] < 10 && $GLOBALS['BE_USER']->workspaceCheckStageForCurrent($rec_off['t3ver_stage'])) { $onClick = 'var commentTxt=window.prompt("'.$label.'",""); if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand( '&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'. '&cmd['.$table.']['.$rec_off['uid'].'][version][stageId]='.$sId ).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+escape(commentTxt);}'. ' return false;'; - if ($rec_off['t3ver_stage']!=10) { - $actionLinks.= - ''. - t3lib_iconWorks::getSpriteIcon('actions-move-up') . - ''; - $this->stageIndex[$sId][$table][] = $rec_off['uid']; - } + $actionLinks .= + '' . + t3lib_iconWorks::getSpriteIcon('actions-move-up') . + ''; + + $this->stageIndex[$sId][$table][] = $rec_off['uid']; } return $actionLinks;