Skip to content

Commit

Permalink
Merge pull request #59 from NiklasBr/elementid-pimcorex
Browse files Browse the repository at this point in the history
Backport #58 to Pimcore X
  • Loading branch information
solverat committed Dec 14, 2023
2 parents 93de4ad + 96ec94f commit 73fa4e8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeception.yml
@@ -1,9 +1,9 @@
name: Codeception
on:
push:
branches: [ 'master' ]
branches: [ '2.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '2.x' ]

jobs:
codeception:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ecs.yml
@@ -1,9 +1,9 @@
name: Easy Coding Standards
on:
push:
branches: [ 'master' ]
branches: [ '2.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '2.x' ]

jobs:
ecs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-stan.yml
@@ -1,9 +1,9 @@
name: PHP Stan
on:
push:
branches: [ 'master' ]
branches: [ '2.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '2.x' ]

jobs:
stan:
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE.md
@@ -1,5 +1,8 @@
# Upgrade Notes

## 2.2.1
- [BUGFIX] Skip meta data update when elementId is missing [@NiklasBr](https://github.com/dachcom-digital/pimcore-seo/pull/58)

## 2.2.0
- [BUGFIX] fix encoding in schema json validation process [#45](https://github.com/dachcom-digital/pimcore-seo/issues/45)
- [IMPROVEMENT] Respect Pimcore fallback languages [#44](https://github.com/dachcom-digital/pimcore-seo/issues/44)
Expand Down
2 changes: 1 addition & 1 deletion src/SeoBundle/MetaData/Extractor/IntegratorExtractor.php
Expand Up @@ -55,7 +55,7 @@ public function updateMetaData(mixed $element, ?string $locale, SeoMetaDataInter
$elementType = 'document';
}

if ($elementType === null) {
if ($elementType === null || !$elementId) {
return;
}

Expand Down

0 comments on commit 73fa4e8

Please sign in to comment.