Skip to content

Commit

Permalink
Merge pull request #40 from helsingborg-stad/fix/reset-latest
Browse files Browse the repository at this point in the history
fix: reset to latest
  • Loading branch information
NiclasNorin authored Jun 19, 2024
2 parents b931f2d + 04437bd commit 6397281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/php/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function postTypes($field)
$postTypes = get_post_types();
$arr = [];
foreach ($postTypes as $postType) {
$contentType = \Municipio\Helper\ContentType::getContentType($postType);
if (is_object($contentType) && $contentType->getKey() == 'place') {
$schemaType = get_field('schema', $postType . '_options');
if ($schemaType === 'Place') {
$postTypeObject = get_post_type_object($postType);
$arr[$postTypeObject->name] = $postTypeObject->label;
}
Expand Down
2 changes: 1 addition & 1 deletion source/php/Module/views/partials/collection.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'containerAware' => true,
'bordered' => true,
'attributeList' => [
'data-js-map-location' => !empty($place->schemaData['place']['pin']) ? json_encode($place->schemaData['place']['pin']) : "",
'data-js-map-location' => !empty($place->openStreetMapData['pin']) ? json_encode($place->openStreetMapData['pin']) : "",
]
])
@if (!empty($place->callToActionItems['floating']))
Expand Down

0 comments on commit 6397281

Please sign in to comment.