Index: class.wslib_gui.php =================================================================== --- class.wslib_gui.php (révision 9) +++ class.wslib_gui.php (copie de travail) @@ -1260,7 +1260,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'] != -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'. @@ -1282,7 +1282,7 @@ $actionLinks.= ''.$sLabel.''; // 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'.