Skip to content

Commit

Permalink
Merge pull request #3392 from bolt/release/5.1.20
Browse files Browse the repository at this point in the history
Prepare release 5.1.20
  • Loading branch information
bobdenotter authored Jan 20, 2023
2 parents 50d7556 + 7138f4e commit bb4319f
Show file tree
Hide file tree
Showing 6 changed files with 501 additions and 23,141 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.20

Released: 2023-01-20

### 🐛 Bug fixes

- Do not display twig value for SetField #3390


## 5.1.19

Released: 2022-12-08
Expand Down
2 changes: 1 addition & 1 deletion assets/js/version.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// generated by genversion
export const version = '5.1.19';
export const version = '5.1.20';
23,624 changes: 487 additions & 23,137 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolt",
"version": "5.1.19",
"version": "5.1.20",
"homepage": "https://boltcms.io",
"author": "Bob den Otter <[email protected]> (https://boltcms.io)",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/Entity/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Bolt\Configuration\Content\ContentType;
use Bolt\Entity\Field\Excerptable;
use Bolt\Entity\Field\ScalarCastable;
use Bolt\Entity\Field\SetField;
use Bolt\Enum\Statuses;
use Bolt\Repository\FieldRepository;
use DateTimeZone;
Expand Down Expand Up @@ -699,7 +700,7 @@ public function __call(string $name, array $arguments = [])
throw new \RuntimeException(sprintf('Invalid field name or method call on %s: %s', $this->__toString(), $name));
}

if ($field instanceof Excerptable || $field instanceof ScalarCastable) {
if (!$field instanceof SetField && ($field instanceof Excerptable || $field instanceof ScalarCastable)) {
return $field->getTwigValue();
}

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.19';
public const VERSION = '5.1.20';
public const CODENAME = '';

/**
Expand Down

0 comments on commit bb4319f

Please sign in to comment.