mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Bad parameter that duplicate info.
This commit is contained in:
parent
fa0470bdb9
commit
adf55408a4
|
|
@ -309,10 +309,10 @@ function getPaypalPaymentUrl($mode,$type,$ref='',$amount='9.99',$freetag='your_f
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
@ -691,7 +691,7 @@ function hash_call($methodName,$nvpStr)
|
|||
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, empty($conf->global->MAIN_USE_CONNECT_TIMEOUT)?5:$conf->global->MAIN_USE_CONNECT_TIMEOUT);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, empty($conf->global->MAIN_USE_RESPONSE_TIMEOUT)?30:$conf->global->MAIN_USE_RESPONSE_TIMEOUT);
|
||||
|
||||
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,12 +29,10 @@
|
|||
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.
|
||||
|
||||
// For MultiCompany module
|
||||
$entity=(! empty($_GET['entity']) ? (int) $_GET['entity'] : (! empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
|
||||
if (is_int($entity))
|
||||
{
|
||||
define("DOLENTITY", $entity);
|
||||
}
|
||||
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
|
||||
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
|
||||
if (is_int($entity)) define("DOLENTITY", $entity);
|
||||
|
||||
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
|
||||
|
|
|
|||
|
|
@ -29,12 +29,10 @@
|
|||
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.
|
||||
|
||||
// For MultiCompany module
|
||||
$entity=(! empty($_GET['entity']) ? (int) $_GET['entity'] : (! empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
|
||||
if (is_int($entity))
|
||||
{
|
||||
define("DOLENTITY", $entity);
|
||||
}
|
||||
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
|
||||
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
|
||||
if (is_int($entity)) define("DOLENTITY", $entity);
|
||||
|
||||
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user