Bug #21774 » 0012887_state-change-bug_v2.diff
typo3_src-4.3.1/typo3/mod/user/ws/class.wslib_gui.php 2010-01-29 17:38:37.000000000 +0100 | ||
---|---|---|
if ($GLOBALS['BE_USER']->workspace !== 0) {
|
||
$tableHeader .= '<option value="release">' . $LANG->getLL('label_doaction_release') . '</option>';
|
||
}
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('-1') ? '<option value="stage_-1">' . $LANG->getLL('label_doaction_stage_reject') . '</option>' : '';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('0') ? '<option value="stage_0">' . $LANG->getLL('label_doaction_stage_editing') . '</option>' : '';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('1') ? '<option value="stage_1">' . $LANG->getLL('label_doaction_stage_review') . '</option>' : '';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('10') ? '<option value="stage_10">' . $LANG->getLL('label_doaction_stage_publish') . '</option>' : '';
|
||
$tableHeader .= '<option value="stage_-1">' . $LANG->getLL('label_doaction_stage_reject') . '</option>';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('-1') ? '<option value="stage_0">' . $LANG->getLL('label_doaction_stage_editing') . '</option>' : '';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('0') ? '<option value="stage_1">' . $LANG->getLL('label_doaction_stage_review') . '</option>' : '';
|
||
$tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('1') ? '<option value="stage_10">' . $LANG->getLL('label_doaction_stage_publish') . '</option>' : '';
|
||
$tableHeader .= '<option value="flush">' . $LANG->getLL('label_doaction_flush') . '</option>
|
||
</select></td>
|
||
... | ... | |
$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'] != -1 && $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'.
|
||
... | ... | |
$actionLinks.= '<span style="background-color: '.$color.'; color: white;">'.$sLabel.'</span>';
|
||
// Raise
|
||
if ($raiseOk && $GLOBALS['BE_USER']->workspaceCheckStageForCurrent($sId)) {
|
||
if ($raiseOk && $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'.
|