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

View File

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