Skip to content

Commit

Permalink
Merge pull request #1513 from younginnovations/1509-unable-to-update-…
Browse files Browse the repository at this point in the history
…publisher-id

Review: 1509-unable-to-update-publisher-id
  • Loading branch information
A4family authored Aug 1, 2024
2 parents 3466f69 + 663322f commit 4bad3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/IATI/Services/Organization/OrganizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private function beginPublisherIdChangeWorkflow(array $orgData, array $settingsD
$settings->timestamps = false;
$settings->updateQuietly();

$orgPublished = $org->organizationPublished;
$orgPublished = $org->organizationPublished ?? [];

if ($org->is_published || count($orgPublished)) {
$oldOrgFilename = "$oldPublisherId-organisation.xml";
Expand All @@ -393,7 +393,7 @@ private function beginPublisherIdChangeWorkflow(array $orgData, array $settingsD
$this->linkNewOrgFileOnRegistry($org, $settings, $orgPublished);
}

$activityPublished = $org->publishedFiles;
$activityPublished = $org->publishedFiles ?? [];

if (count($activityPublished)) {
$activityPublished = $activityPublished[0];
Expand Down

0 comments on commit 4bad3f2

Please sign in to comment.