v1.0.1
This commit is contained in:
parent
6f70fcaac7
commit
abb4bae99a
@ -282,8 +282,6 @@ class ICrmOrderActions
|
|||||||
public static function orderHistory() {
|
public static function orderHistory() {
|
||||||
global $USER;
|
global $USER;
|
||||||
|
|
||||||
$GLOBALS['INTARO_CRM_FROM_HISTORY'] = true;
|
|
||||||
|
|
||||||
if(isset($_SESSION["SESS_AUTH"]["USER_ID"]) && $_SESSION["SESS_AUTH"]["USER_ID"]) {
|
if(isset($_SESSION["SESS_AUTH"]["USER_ID"]) && $_SESSION["SESS_AUTH"]["USER_ID"]) {
|
||||||
$realUser = $USER->GetID();
|
$realUser = $USER->GetID();
|
||||||
$USER->Logout();
|
$USER->Logout();
|
||||||
@ -374,6 +372,8 @@ class ICrmOrderActions
|
|||||||
|
|
||||||
$orderHistory = $api->orderHistory($dateStart);
|
$orderHistory = $api->orderHistory($dateStart);
|
||||||
|
|
||||||
|
$GLOBALS['INTARO_CRM_FROM_HISTORY'] = false;
|
||||||
|
|
||||||
// pushing existing orders
|
// pushing existing orders
|
||||||
foreach ($orderHistory as $order) {
|
foreach ($orderHistory as $order) {
|
||||||
|
|
||||||
@ -875,6 +875,8 @@ class ICrmOrderActions
|
|||||||
$USER->Logout();
|
$USER->Logout();
|
||||||
if($realUser) $USER->Authorize($realUser);
|
if($realUser) $USER->Authorize($realUser);
|
||||||
|
|
||||||
|
$GLOBALS['INTARO_CRM_FROM_HISTORY'] = false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user