Skip to content

Commit 86bb64e

Browse files
authored
Fix: get default value (#1162)
* Fix: get default value * changelog
1 parent 66a6b7e commit 86bb64e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [UNRELEASED]
99

1010
- Fix application of the read-only option on RichText fields.
11+
- Fix loading of default value for RichText fields.
1112

1213
## [1.21.28] - 2026-02-16
1314

inc/field.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,8 +1178,8 @@ public static function prepareHtmlFields(
11781178
'itemtype' => $found_v[$itemtype_key],
11791179
'items_id' => $found_v[$items_id_key],
11801180
];
1181-
} else {
1182-
$value = $found_v[$field['name']] ?? '';
1181+
} elseif (isset($found_v[$field['name']])) {
1182+
$value = $found_v[$field['name']];
11831183
}
11841184
}
11851185

0 commit comments

Comments
 (0)