Skip to content

Commit

Permalink
Change label field to name
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbager committed Feb 6, 2018
1 parent 1719a23 commit 62c4dfa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Context/ShippingGatewayContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getCode(): ?string
public function getLabelByCode(?string $code): ?string
{
foreach ($this->shippingGateways as $shippingGatewayCode => $shippingGatewayLabel) {
if ($shippingGatewayCode === $code) {
if ($code === $shippingGatewayCode) {
return $shippingGatewayLabel;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/config/grids/bitbag_shipping_gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ sylius_grid:
type: string
label: sylius.ui.code
sortable: code
label:
name:
type: string
label: bitbag.ui.label
sortable: label
label: sylius.ui.name
sortable: name
filters:
search:
type: string
Expand Down
1 change: 0 additions & 1 deletion src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
bitbag:
ui:
shipping_gateways: Shipping gateways
label: Name
create_shipping_gateway: Create shipping gateway
manage_shipping_gateways: Manage shipping gateways
choose_shipping_method: Choose shipping method
Expand Down
1 change: 0 additions & 1 deletion src/Resources/translations/messages.pl.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
bitbag:
ui:
shipping_gateways: Bramy dostawców
label: Nazwa
create_shipping_gateway: Stwórz bramę dostawcy
manage_shipping_gateways: Zarządzaj bramami dostawców
choose_shipping_method: Wybierz metodę wysyłki
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Setup/ShippingGatewayContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function thereIsARegisteredShippingGatewayForThisShippingMethod($code, $n

$shippingGateway->addShippingMethod($shippingMethod);
$shippingGateway->setCode($code);
$shippingGateway->setLabel($name);
$shippingGateway->setName($name);
$shippingGateway->setConfig(['iban' => '123', 'address' => 'foo bar']);

$this->sharedStorage->set('shipping_gateway', $shippingGateway);
Expand Down

0 comments on commit 62c4dfa

Please sign in to comment.