From ec4a75e9f0361333f69610ac5c971627d1e15350 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Fri, 13 Mar 2026 08:25:57 +0100 Subject: [PATCH 1/2] Fix: get default value --- inc/field.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/field.class.php b/inc/field.class.php index 8ac10838..49296d51 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1178,8 +1178,8 @@ public static function prepareHtmlFields( 'itemtype' => $found_v[$itemtype_key], 'items_id' => $found_v[$items_id_key], ]; - } else { - $value = $found_v[$field['name']] ?? ''; + } elseif (isset($found_v[$field['name']])) { + $value = $found_v[$field['name']]; } } From 64b2132640ccd0de876b1fbb0e04c17c68214df2 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Fri, 13 Mar 2026 08:31:10 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 986b23d6..d06e8cba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] - Fix application of the read-only option on RichText fields. +- Fix loading of default value for RichText fields. ## [1.21.28] - 2026-02-16