diff --git a/admin/model/retailcrm/history.php b/admin/model/retailcrm/history.php index 7b5f78f..2552c72 100644 --- a/admin/model/retailcrm/history.php +++ b/admin/model/retailcrm/history.php @@ -93,7 +93,7 @@ class ModelRetailcrmHistory extends Model $crm->customersFixExternalIds($this->createResult['customers']); } - if (!empty($this->createResult['customers'])) { + if (!empty($this->createResult['orders'])) { $crm->ordersFixExternalIds($this->createResult['orders']); }