Skip to content

Commit

Permalink
Merge branch 'master' of github.com:plenta/contao-jobs-basic-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikaplenta committed Sep 6, 2024
2 parents 70ec8b2 + a3ac58c commit 9358d59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plenta/ContaoJobsBasic/GoogleForJobs/GoogleForJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public function generateLogo(PlentaJobsBasicOrganizationModel $hiringOrganizatio

if (null !== $uuid && '' !== $uuid) {
$image = FilesModel::findByUuid($uuid);

if (null === $image) {
return $structuredData;
}

$staticUrl = $this->contaoFileContext->getStaticUrl();

$imageConfigItem = new PictureConfigurationItem();
Expand Down
2 changes: 2 additions & 0 deletions src/Plenta/ContaoJobsBasic/Helper/MetaFieldsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public function formatAddressCountry(PlentaJobsBasicOfferModel $jobOffer): strin
$countriesTemp = [];
$locations = StringUtil::deserialize($jobOffer->jobLocation);

System::loadLanguageFile('countries');

foreach ($locations as $location) {
$objLocation = PlentaJobsBasicJobLocationModel::findByPk($location);
$name = 'onPremise' === $objLocation->jobTypeLocation ? $GLOBALS['TL_LANG']['CNT'][$objLocation->addressCountry] : ('Country' === $objLocation->requirementType ? $objLocation->requirementValue : null);
Expand Down

0 comments on commit 9358d59

Please sign in to comment.