11458.diff

Administrator Admin, 2009-07-15 17:04

Download (1.74 KB)

View differences:

typo3/sysext/version/cm1/index.php (working copy)
1060 1060
			}
1061 1061

  
1062 1062
			$onClick = 'var commentTxt=window.prompt("'.sprintf($label,$itemCount).'","");
1063
							if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand($issueCmd,$this->REQUEST_URI).'&generalComment="+escape(commentTxt);}';
1063
							if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand($issueCmd,$this->REQUEST_URI).'&generalComment="+encodeURI(commentTxt);}';
1064 1064

  
1065 1065
			if (t3lib_div::_GP('sendToReview'))	{
1066 1066
				$onClick.= ' else {window.location.href = "'.$this->REQUEST_URI.'"}';
......
1624 1624
							if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand(
1625 1625
							'&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'.
1626 1626
							'&cmd['.$table.']['.$rec_off['uid'].'][version][stageId]=-1'
1627
							).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+escape(commentTxt);}'.
1627
							).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+encodeURI(commentTxt);}'.
1628 1628
							' return false;';
1629 1629
				// Reject:
1630 1630
			$actionLinks.=
......
1645 1645
							if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand(
1646 1646
							'&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'.
1647 1647
							'&cmd['.$table.']['.$rec_off['uid'].'][version][stageId]='.$sId
1648
							).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+escape(commentTxt);}'.
1648
							).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+encodeURI(commentTxt);}'.
1649 1649
							' return false;';
1650 1650
			if ($rec_off['t3ver_stage']!=10)	{
1651 1651
				$actionLinks.=