Skip to content

Commit 7384ca7

Browse files
committed
publish the images to the cpresources
1 parent f58b258 commit 7384ca7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Customizable Radio Buttons Field Changelog
22

3+
## 1.0.1 - 2019-09-15
4+
### Fixed
5+
- Publishing images to cpresources.
6+
37
## 1.0.0 - 2019-04-06
48
### Added
59
- Initial release

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codemonauts/craft-customizable-radio-buttons-field",
33
"description": "Craft CMS plugin to add a radio buttons field, customizable with CSS classes, icons, images and text.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "craft-plugin",
66
"keywords": [
77
"craft",

src/fields/Buttons.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getInputHtml($value, ElementInterface $element = null): string
8686
foreach ($group['buttons'] as $handle => $button) {
8787
$buttons[$handle] = array_merge($this->defaultButton, $button);
8888
if ($buttons[$handle]['image'] !== '') {
89-
$buttons[$handle]['image'] = Craft::$app->assetManager->getPublishedUrl($buttons[$handle]['image'], false);
89+
$buttons[$handle]['image'] = Craft::$app->assetManager->getPublishedUrl($buttons[$handle]['image'], true);
9090
}
9191
}
9292

0 commit comments

Comments
 (0)