Skip to content

Commit bb4319f

Browse files
authored
Merge pull request #3392 from bolt/release/5.1.20
Prepare release 5.1.20
2 parents 50d7556 + 7138f4e commit bb4319f

File tree

6 files changed

+501
-23141
lines changed

6 files changed

+501
-23141
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
## 5.1.20
5+
6+
Released: 2023-01-20
7+
8+
### 🐛 Bug fixes
9+
10+
- Do not display twig value for SetField #3390
11+
12+
413
## 5.1.19
514

615
Released: 2022-12-08

assets/js/version.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// generated by genversion
2-
export const version = '5.1.19';
2+
export const version = '5.1.20';

package-lock.json

+487-23,137
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bolt",
3-
"version": "5.1.19",
3+
"version": "5.1.20",
44
"homepage": "https://boltcms.io",
55
"author": "Bob den Otter <[email protected]> (https://boltcms.io)",
66
"license": "MIT",

src/Entity/Content.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Bolt\Configuration\Content\ContentType;
1212
use Bolt\Entity\Field\Excerptable;
1313
use Bolt\Entity\Field\ScalarCastable;
14+
use Bolt\Entity\Field\SetField;
1415
use Bolt\Enum\Statuses;
1516
use Bolt\Repository\FieldRepository;
1617
use DateTimeZone;
@@ -699,7 +700,7 @@ public function __call(string $name, array $arguments = [])
699700
throw new \RuntimeException(sprintf('Invalid field name or method call on %s: %s', $this->__toString(), $name));
700701
}
701702

702-
if ($field instanceof Excerptable || $field instanceof ScalarCastable) {
703+
if (!$field instanceof SetField && ($field instanceof Excerptable || $field instanceof ScalarCastable)) {
703704
return $field->getTwigValue();
704705
}
705706

src/Version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Version
2323
* Stable — 3.0.0
2424
* Development — 3.1.0 alpha 1
2525
*/
26-
public const VERSION = '5.1.19';
26+
public const VERSION = '5.1.20';
2727
public const CODENAME = '';
2828

2929
/**

0 commit comments

Comments
 (0)