diff --git a/CHANGELOG-1.0.md b/CHANGELOG-1.0.md index c55b9d991f8..1258b000c0c 100644 --- a/CHANGELOG-1.0.md +++ b/CHANGELOG-1.0.md @@ -1,5 +1,16 @@ ## CHANGELOG +### v1.0.8 2018-01-12 + +- [#9101](https://github.com/Sylius/Sylius/pull/9101) Fix wrong target-entity in exchange-rate entity (@alcaeus) +- [#9097](https://github.com/Sylius/Sylius/pull/9097) Fix UI form add button issue collection in a collection (@wadjeroudi) +- [#9095](https://github.com/Sylius/Sylius/pull/9095) Prevent the kernel response listener for cart from continuing when the session is not actually started. (@Hailong) +- [#9096](https://github.com/Sylius/Sylius/pull/9096) PHP 7.2 support, finally! (@pamil) +- [#9090](https://github.com/Sylius/Sylius/pull/9090) Update README.md (@landsman) +- [#9084](https://github.com/Sylius/Sylius/pull/9084) Minor enhancements to product review API pull request (@pamil) +- [#9085](https://github.com/Sylius/Sylius/pull/9085) Fix referenced state machine configuration path (@pamil) +- [#9079](https://github.com/Sylius/Sylius/pull/9079) [Travis] Run a full build for tags (@pamil) + ### v1.0.7 2017-12-30 - [#9075](https://github.com/Sylius/Sylius/pull/9075) Test sylius:install command on Travis (@pamil) diff --git a/src/Sylius/Bundle/CurrencyBundle/Resources/config/doctrine/model/ExchangeRate.orm.xml b/src/Sylius/Bundle/CurrencyBundle/Resources/config/doctrine/model/ExchangeRate.orm.xml index da705a01767..e7e1093e54b 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Resources/config/doctrine/model/ExchangeRate.orm.xml +++ b/src/Sylius/Bundle/CurrencyBundle/Resources/config/doctrine/model/ExchangeRate.orm.xml @@ -34,10 +34,10 @@ - + - + diff --git a/src/Sylius/Bundle/ProductBundle/Resources/translations/messages.cs.yml b/src/Sylius/Bundle/ProductBundle/Resources/translations/messages.cs.yml index 9bf698ef20b..2dcdf884e2b 100644 --- a/src/Sylius/Bundle/ProductBundle/Resources/translations/messages.cs.yml +++ b/src/Sylius/Bundle/ProductBundle/Resources/translations/messages.cs.yml @@ -16,6 +16,8 @@ sylius: association_type: name: Jméno translations: Překlady + association: + type: Typ asociace variant: name: Jméno option: diff --git a/src/Sylius/Bundle/ShopBundle/EventListener/SessionCartSubscriber.php b/src/Sylius/Bundle/ShopBundle/EventListener/SessionCartSubscriber.php index 29471fa598c..1bea1aa8f45 100644 --- a/src/Sylius/Bundle/ShopBundle/EventListener/SessionCartSubscriber.php +++ b/src/Sylius/Bundle/ShopBundle/EventListener/SessionCartSubscriber.php @@ -61,6 +61,11 @@ public function onKernelResponse(FilterResponseEvent $event): void return; } + $session = $event->getRequest()->getSession(); + if ($session && !$session->isStarted()) { + return; + } + try { $cart = $this->cartContext->getCart(); } catch (CartNotFoundException $exception) { diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js index 58f2fb24673..0b3f7d9fceb 100644 --- a/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js +++ b/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-form-collection.js @@ -25,7 +25,7 @@ this.$element.on( 'click', - '[data-form-collection="add"]:first', + '[data-form-collection="add"]:last', $.proxy(this.addItem, this) );