Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rias committed Feb 19, 2018
1 parent 4971d31 commit 36400b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_components/fields/Width_input.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div id="{{ id }}" class="btngroup">
{% for option, label in allOptions %}
{% if field.options[option] %}
{% if field.options[option] is defined and field.options[option] %}
<div title="{{ label|t('width-fieldtype') }}" class="btn width-button {% if value is not null ? option == value : field.default == option %} active{% endif %}" data-option="{{ option }}">
<img src="{{ craft.app.assetManager.getPublishedUrl('@rias/widthfieldtype/assetbundles/widthfieldtype/dist/img', true, label|replace('/', '-') ~ '.svg') }}" alt="">
</div>
Expand Down

0 comments on commit 36400b5

Please sign in to comment.