Skip to content
Snippets Groups Projects
Commit adf55408 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bad parameter that duplicate info.

parent fa0470bd
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,7 @@ function getPaypalPaymentUrl($mode,$type,$ref='',$amount='9.99',$freetag='your_f ...@@ -311,7 +311,7 @@ function getPaypalPaymentUrl($mode,$type,$ref='',$amount='9.99',$freetag='your_f
} }
// For multicompany // For multicompany
$out.="&entity=".$conf->entity; //$out.="&entity=".$conf->entity; // This should not be into link. Link contains already a ref of an object that allow to retreive entity
return $out; return $out;
} }
......
...@@ -29,12 +29,10 @@ ...@@ -29,12 +29,10 @@
define("NOLOGIN",1); // This means this output page does not require to be logged. define("NOLOGIN",1); // This means this output page does not require to be logged.
define("NOCSRFCHECK",1); // We accept to go on this page from external web site. define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
// For MultiCompany module // For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity=(! empty($_GET['entity']) ? (int) $_GET['entity'] : (! empty($_POST['entity']) ? (int) $_POST['entity'] : 1)); $entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) if (is_int($entity)) define("DOLENTITY", $entity);
{
define("DOLENTITY", $entity);
}
require '../../main.inc.php'; require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php'; require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
......
...@@ -29,12 +29,10 @@ ...@@ -29,12 +29,10 @@
define("NOLOGIN",1); // This means this output page does not require to be logged. define("NOLOGIN",1); // This means this output page does not require to be logged.
define("NOCSRFCHECK",1); // We accept to go on this page from external web site. define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
// For MultiCompany module // For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity=(! empty($_GET['entity']) ? (int) $_GET['entity'] : (! empty($_POST['entity']) ? (int) $_POST['entity'] : 1)); $entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) if (is_int($entity)) define("DOLENTITY", $entity);
{
define("DOLENTITY", $entity);
}
require '../../main.inc.php'; require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php'; require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment