Skip to content

Commit 851af9a

Browse files
Merge pull request #546 from Smartling/WP-912-bulk-submit-fix
fix bulk submit (again) (WP-912)
2 parents c6e9d24 + 9033b97 commit 851af9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inc/Smartling/Services/ContentRelationsDiscoveryService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ public function bulkUpload(
133133
$this->uploadQueueManager->enqueue(new IntegerIterator($queueIds), $this->apiWrapper->createBatch(
134134
$profile,
135135
$jobInfo->getJobUid(),
136-
array_unique(array_map(static function (SubmissionEntity $submission) {
136+
array_values(array_unique(array_map(static function (SubmissionEntity $submission) {
137137
return $submission->getFileUri();
138-
}, $this->submissionManager->find([SubmissionEntity::FIELD_ID => $queueIds]))),
138+
}, $this->submissionManager->find([SubmissionEntity::FIELD_ID => $queueIds])))),
139139
$authorize,
140140
));
141141
}

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Additional information on the Smartling Connector for WordPress can be found [he
6464
== Changelog ==
6565
= 3.9.13 =
6666
* Improved handling of service strings inside nested ACF fields: they no longer should be sent for translation
67+
* Fixed Bulk Submit ingesting only one submission for translation when many were selected
6768

6869
= 3.9.12 =
6970
* Fixed Bulk Submit ingesting only one submission for translation when many were selected

0 commit comments

Comments
 (0)