diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c128be..ad85c03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.0.2 - 2018-02-19 +### Fixes +- Fixed an issue when updating from the old version + ## 1.0.1 - 2018-02-15 ### Added - Added more width options and improved icons clarity. diff --git a/composer.json b/composer.json index 49f831b..c67eb96 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "rias/craft-width-fieldtype", "description": "Let users choose from predefined widths", "type": "craft-plugin", - "version": "1.0.1", + "version": "1.0.2", "keywords": [ "craft", "cms", diff --git a/src/templates/_components/fields/Width_input.twig b/src/templates/_components/fields/Width_input.twig index b2938e9..860ea0f 100644 --- a/src/templates/_components/fields/Width_input.twig +++ b/src/templates/_components/fields/Width_input.twig @@ -16,7 +16,7 @@
{% for option, label in allOptions %} - {% if field.options[option] %} + {% if field.options[option] is defined and field.options[option] %}