We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4004e64 + fa0056b commit 21aa5c0Copy full SHA for 21aa5c0
src/fields/Matrix.php
@@ -230,7 +230,7 @@ public function parseField(): mixed
230
$index = 1;
231
$resultBlocks = [];
232
foreach ($expanded as $blockData) {
233
- // if all the fields are empty and setEmptyValues is off, ignore the block
+ // if all the fields are empty and setEmptyValues is off and there's no title or slug being set, ignore the block
234
if (
235
!empty(array_filter(
236
$blockData['fields'],
@@ -240,7 +240,8 @@ public function parseField(): mixed
240
is_bool($value) ||
241
is_numeric($value)
242
)
243
- ))
+ )) ||
244
+ (!empty($blockData['title']) || !empty($blockData['slug']))
245
) {
246
$resultBlocks['new' . $index++] = $blockData;
247
}
0 commit comments