Skip to content

Commit

Permalink
Merge pull request #3276 from bolt/fix/find-one-image
Browse files Browse the repository at this point in the history
Tiny fix for the `|image`-filter
  • Loading branch information
bobdenotter authored Jul 11, 2022
2 parents 2faaccb + d58d95e commit 1dfe9d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

## 5.1.12

Released: 2022-07-11

### 🐛 Bug fixes

- Tiny fix for the |image-filter [#3276](https://github.com/bolt/core/pull/3276)


## 5.1.11

Released: 2022-07-05
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/ContentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function getImage(?Content $content, bool $onlyValues = false)
return null;
}

private function findOneImage(Field $field): ?ImageField
private function findOneImage(Field $field)
{
if ($field instanceof ImageField && $field->get('filename')) {
return $field;
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class Version
* Stable — 3.0.0
* Development — 3.1.0 alpha 1
*/
public const VERSION = '5.1.11';
public const VERSION = '5.1.12';
public const CODENAME = '';

/**
Expand Down

0 comments on commit 1dfe9d8

Please sign in to comment.