Skip to content

Commit

Permalink
Fixed issue with ovewriting array key
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Sep 6, 2023
1 parent 2935f21 commit 2eb8749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function processEvent(
?array $fieldMap = null
): array {
foreach ($languages as $languageCode) {
$tokenValues[$languageCode] = [];
$tokenValues[$languageCode] ?? $tokenValues[$languageCode] = [];
foreach ($identifiers as $identifier) {
$fieldDefinition = $contentType->getFieldDefinition($identifier);
if (null === $fieldDefinition) {
Expand Down
1 change: 0 additions & 1 deletion src/lib/Repository/Helper/NameSchemaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Core\Repository\Helper;

use Ibexa\Contracts\Core\Persistence\Content\Type as SPIContentType;
Expand Down

0 comments on commit 2eb8749

Please sign in to comment.