Bug #21774 » state-change-bug-class.wslib_gui.php.patch
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'.
|