Skip to content

Commit

Permalink
[BUGFIX] Add default value for imageoverlayPalette
Browse files Browse the repository at this point in the history
Fixes: #626
Related: ce8dc70
(cherry picked from commit dfde313)
  • Loading branch information
nhovratov committed Mar 14, 2024
1 parent a3edd43 commit f7e2ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/FieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function addFields(array $fields, string $table, string $elementKey =
}

if ($fieldType->equals(FieldType::FILE)) {
$newField['tca']['imageoverlayPalette'] = $field['imageoverlayPalette'];
$newField['tca']['imageoverlayPalette'] = $field['imageoverlayPalette'] ?? 1;
}

if ($fieldType->isFileReference()) {
Expand Down

0 comments on commit f7e2ebc

Please sign in to comment.