diff --git a/src/Services/InfoProviderSystem/DTOs/BulkSearchResponseDTO.php b/src/Services/InfoProviderSystem/DTOs/BulkSearchResponseDTO.php index dd9ee7ac..2f3f858b 100644 --- a/src/Services/InfoProviderSystem/DTOs/BulkSearchResponseDTO.php +++ b/src/Services/InfoProviderSystem/DTOs/BulkSearchResponseDTO.php @@ -24,12 +24,13 @@ namespace App\Services\InfoProviderSystem\DTOs; use App\Entity\Parts\Part; use Doctrine\ORM\EntityManagerInterface; +use Traversable; /** * Represents the complete response from a bulk info provider search operation. * It contains a list of PartSearchResultDTOs, one for each part searched. */ -readonly class BulkSearchResponseDTO implements \ArrayAccess +readonly class BulkSearchResponseDTO implements \ArrayAccess, \IteratorAggregate { /** * @param BulkSearchPartResultsDTO[] $partResults Array of search results for each part @@ -216,4 +217,9 @@ readonly class BulkSearchResponseDTO implements \ArrayAccess { throw new \LogicException('BulkSearchResponseDTO is immutable.'); } + + public function getIterator(): Traversable + { + return new \ArrayIterator($this->partResults); + } } diff --git a/templates/info_providers/bulk_import/step2.html.twig b/templates/info_providers/bulk_import/step2.html.twig index 3a812abf..559ca20a 100644 --- a/templates/info_providers/bulk_import/step2.html.twig +++ b/templates/info_providers/bulk_import/step2.html.twig @@ -26,8 +26,8 @@
|
|
{% if dto.provider_url is not null %}
@@ -204,9 +207,9 @@
{{ dto.provider_id }} |
- {{ result.source_field ?? 'unknown' }}
- {% if result.source_keyword %}
- {{ result.source_keyword }} + {{ result.sourceField ?? 'unknown' }} + {% if result.sourceKeyword %} + {{ result.sourceKeyword }} {% endif %} |