Project

General

Profile

Bug #21774 » state-change-bug-class.wslib_gui.php.patch

Administrator Admin, 2009-12-02 15:33

View differences:

class.wslib_gui.php (copie de travail)
$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'.
(1-1/6)