Merge pull request #13 from VitalyArt/bugfix

Bugfix
This commit is contained in:
Alex Lushpai 2016-08-19 11:28:10 +03:00 committed by GitHub
commit d6dad7bd4d
2 changed files with 3 additions and 3 deletions

View File

@ -41,11 +41,11 @@ class CustomersBuilder extends Builder
*/ */
public function buildCustomersById($uidString) public function buildCustomersById($uidString)
{ {
$uids = DataHelper::explodeUids($uidString);
$query = $this->rule->getSQL('customers_uid'); $query = $this->rule->getSQL('customers_uid');
$handler = $this->rule->getHandler('CustomersHandler'); $handler = $this->rule->getHandler('CustomersHandler');
$this->sql = $this->container->db->prepare($query); $this->sql = $this->container->db->prepare($query);
$this->sql->bindParam(':orderIds', $uids); $this->sql->bindParam(':orderIds', $uids);
$uids = DataHelper::explodeUids($uidString);
return $this->build($handler); return $this->build($handler);
} }
@ -74,11 +74,11 @@ class CustomersBuilder extends Builder
*/ */
public function buildCustomersUpdateById($uidString) public function buildCustomersUpdateById($uidString)
{ {
$uids = DataHelper::explodeUids($uidString);
$query = $this->rule->getSQL('customers_update_uid'); $query = $this->rule->getSQL('customers_update_uid');
$handler = $this->rule->getHandler('CustomersHandler'); $handler = $this->rule->getHandler('CustomersHandler');
$this->sql = $this->container->db->prepare($query); $this->sql = $this->container->db->prepare($query);
$this->sql->bindParam(':orderIds', $uids); $this->sql->bindParam(':orderIds', $uids);
$uids = DataHelper::explodeUids($uidString);
return $this->build($handler); return $this->build($handler);
} }

View File

@ -221,7 +221,7 @@ class Command
break; break;
case 'payment-statuses': case 'payment-statuses':
$reference = $builder->buildPaymentStatuses(); $reference = $builder->buildPaymentStatuses();
$this->requestHelper->uploadDeliveryStatuses($reference); $this->requestHelper->uploadPaymentStatuses($reference);
break; break;
case 'statuses': case 'statuses':
$reference = $builder->buildStatuses(); $reference = $builder->buildStatuses();