Skip to content

Commit

Permalink
Merge pull request #32228 from hregis/fix_dev_wrong_entity_param_value
Browse files Browse the repository at this point in the history
FIX wrong param entity value
  • Loading branch information
eldy authored Dec 4, 2024
2 parents 56173b0 + 9aa4ce7 commit b41ef21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions htdocs/bom/bom_net_needs.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
$object->fetch_product();
$manufacturedvalued = '';
if (!empty($object->product)) {
global $mysoc;
$tmparray = $object->product->getSellPrice($mysoc, $mysoc);
$manufacturedvalued = $tmparray['pu_ht'] * $object->qty;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/login/functions_googleoauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function check_user_password_googleoauth($usertotest, $passwordtotest, $entityto

// We save data of form into a variable
$_SESSION['datafromloginform'] = array(
'entity'=>GETPOSTINT('entity'),
'entity'=>GETPOST('entity', 'int'), // avoid to return 0 if entity var not exists
'backtopage'=>GETPOST('backtopage'),
'tz'=>GETPOST('tz'),
'tz_string'=>GETPOST('tz_string'),
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/oauth/generic_oauthcallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
dol_syslog("we received the login/email to log to, it is ".$useremail);

$tmparray = (empty($_SESSION['datafromloginform']) ? array() : $_SESSION['datafromloginform']);
$entitytosearchuser = (isset($tmparray['entity']) ? $tmparray['entity'] : -1);
$entitytosearchuser = ((isset($tmparray['entity']) && $tmparray['entity'] != '') ? $tmparray['entity'] : -1);

// Delete the old token
$storage->clearToken($genericstring); // Delete the token called ("Generic-".$storage->keyforprovider)
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/oauth/google_oauthcallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
dol_syslog("we received the login/email to log to, it is ".$useremail);

$tmparray = (empty($_SESSION['datafromloginform']) ? array() : $_SESSION['datafromloginform']);
$entitytosearchuser = (isset($tmparray['entity']) ? $tmparray['entity'] : -1);
$entitytosearchuser = ((isset($tmparray['entity']) && $tmparray['entity'] != '') ? $tmparray['entity'] : -1);

// Delete the old token
$storage->clearToken('Google'); // Delete the token called ("Google-".$storage->keyforprovider)
Expand Down

0 comments on commit b41ef21

Please sign in to comment.