소스 검색

User portal as a module: the Cancel button (ticket creation wizard) was not working

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3705 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 년 전
부모
커밋
9389d8e53f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/portalwebpage.class.inc.php

+ 1 - 1
application/portalwebpage.class.inc.php

@@ -260,7 +260,7 @@ EOF
 	{
 		var form = $('FORM');
 		form.unbind('submit'); // De-activate validation
-		window.location.href = '?operation=';
+		window.location.href = window.location.href.replace(/[&?]operation=[^&]*/, '');
 		return false;
 	}