Skip to content

Commit

Permalink
Merge pull request #1333 from younginnovations/1332-unable-to-add-rec…
Browse files Browse the repository at this point in the history
…ipient-country-under-specific-condition

Review: 332-unable-to-add-recipient-country-under-specific-condition
  • Loading branch information
aashish-t-magar authored Dec 12, 2023
2 parents c5e5ce9 + 6c58aa1 commit 9c087c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/IATI/Services/Organization/DocumentLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\IATI\Elements\Builder\ParentCollectionFormCreator;
use App\IATI\Models\Organization\Organization;
use App\IATI\Repositories\Organization\OrganizationRepository;
use App\IATI\Traits\DataSanitizeTrait;
use App\IATI\Traits\OrganizationXmlBaseElements;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
Expand All @@ -17,7 +18,7 @@
*/
class DocumentLinkService
{
use OrganizationXmlBaseElements;
use OrganizationXmlBaseElements, DataSanitizeTrait;

/**
* @var ParentCollectionFormCreator
Expand Down Expand Up @@ -83,7 +84,7 @@ public function update($id, $documentLink): bool
}
}

return $this->organizationRepository->update($id, ['document_link' => $documentLink['document_link']]);
return $this->organizationRepository->update($id, ['document_link' => $this->sanitizeData($documentLink['document_link'])]);
}

/**
Expand Down

0 comments on commit 9c087c0

Please sign in to comment.