We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf52eb commit 4a9c494Copy full SHA for 4a9c494
Classes/Hook/CreateMarker.php
@@ -239,6 +239,9 @@ protected function addNewFields(): void
239
protected function getFieldObjectFromProperties(array $properties, string $uid = '0'): Field
240
{
241
$dataMapper = GeneralUtility::makeInstance(DataMapper::class);
242
+ if (isset($properties['uid']) === false) {
243
+ $properties['uid'] = null;
244
+ }
245
$field = $dataMapper->map(Field::class, [$properties])[0];
246
if (!empty($properties['sys_language_uid'])) {
247
$field->_setProperty('_languageUid', (int)$properties['sys_language_uid']);
0 commit comments