Skip to content

Commit

Permalink
Merge pull request #1503 from younginnovations/1499-unable-to-registe…
Browse files Browse the repository at this point in the history
…r-new-organisation-on-iati-publisher-staging-site

Review: 1499-unable-to-register-new-organisation-on-iati-publisher-staging-site
  • Loading branch information
Sanilblank authored Jul 22, 2024
2 parents 68672bb + 81a98b0 commit fb726c6
Show file tree
Hide file tree
Showing 5 changed files with 17,175 additions and 18,423 deletions.
2 changes: 1 addition & 1 deletion app/IATI/Services/User/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function checkIATIIdentifier(string $identifier): array

if (!empty($result)) {
foreach ($result as $publisher) {
if ($publisher->publisher_iati_id === $identifier) {
if (Arr::get($publisher, 'publisher_iati_id', false) === $identifier) {
return [
'identifier' => [
0 => 'IATI Organizational Identifier already exists in IATI Registry.',
Expand Down
Loading

0 comments on commit fb726c6

Please sign in to comment.