Browse Source

#1095 Object creation form and bulk modify (final step) not working when using apache-proxy

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3673 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 years ago
parent
commit
3daf007c81
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/cmdbabstract.class.inc.php

+ 2 - 2
application/cmdbabstract.class.inc.php

@@ -2043,7 +2043,7 @@ EOF
 		$aFieldsMap = array();
 		if (!isset($aExtraParams['action']))
 		{
-			$sFormAction = $_SERVER['SCRIPT_NAME']; // No parameter in the URL, the only parameter will be the ones passed through the form
+			$sFormAction = utils::GetAbsoluteUrlAppRoot().'pages/'.$this->GetUIPage(); // No parameter in the URL, the only parameter will be the ones passed through the form
 		}
 		else
 		{
@@ -3672,7 +3672,7 @@ EOF
 		$oP->Table($aHeaders, $aRows);
 		if ($bPreview)
 		{
-			$sFormAction = $_SERVER['SCRIPT_NAME']; // No parameter in the URL, the only parameter will be the ones passed through the form
+			$sFormAction = utils::GetAbsoluteUrlAppRoot().'pages/UI.php'; // No parameter in the URL, the only parameter will be the ones passed through the form
 			// Form to submit:
 			$oP->add("<form method=\"post\" action=\"$sFormAction\" enctype=\"multipart/form-data\">\n");
 			$aDefaults = utils::ReadParam('default', array());