Skip to content

Commit a81a559

Browse files
Merge pull request #533 from Smartling/WP-898-new-page-failures
fix submissions stuck in new (WP-898)
2 parents 3322d11 + 71c4b16 commit a81a559

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "smartling/wordpress-connector",
33
"license": "GPL-2.0-or-later",
4-
"version": "3.9.2",
4+
"version": "3.9.3",
55
"description": "",
66
"type": "wordpress-plugin",
77
"repositories": [

inc/Smartling/Base/SmartlingCoreUploadTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ public function bulkSubmit(UploadQueueItem $item): void
436436
$submission->setFileUri($fileUri);
437437
$submission->setStatus(SubmissionEntity::SUBMISSION_STATUS_IN_PROGRESS);
438438
$submission->setSubmissionDate(DateTimeHelper::nowAsString());
439+
$this->getSubmissionManager()->storeSubmissions([$submission]);
439440
}
440-
$this->getSubmissionManager()->storeSubmissions($item->getSubmissions());
441441

442442
LiveNotificationController::pushNotification(
443443
$profile->getProjectId(),

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: translation, localization, localisation, translate, multilingual, smartlin
44
Requires at least: 5.5
55
Tested up to: 6.4.1
66
Requires PHP: 8.0
7-
Stable tag: 3.9.2
7+
Stable tag: 3.9.3
88
License: GPLv2 or later
99

1010
Translate content in WordPress quickly and seamlessly with Smartling, the industry-leading Translation Management System.
@@ -62,6 +62,9 @@ Additional information on the Smartling Connector for WordPress can be found [he
6262
3. Track translation status within WordPress from the Submissions Board. View overall progress of submitted translation requests as well as resend updated content.
6363

6464
== Changelog ==
65+
= 3.9.3 =
66+
* Fixed submissions stuck in New status after uploading
67+
6568
= 3.9.2 =
6669
* Fixed auto authorise flag ignored when submitting from widget
6770

smartling-connector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Smartling Connector
1212
* Plugin URI: https://www.smartling.com/products/automate/integrations/wordpress/
1313
* Description: Integrate your WordPress site with Smartling to upload your content and download translations.
14-
* Version: 3.9.2
14+
* Version: 3.9.3
1515
* Author: Smartling
1616
* Author URI: https://www.smartling.com
1717
* License: GPL-2.0+

tests/IntegrationTests/tests/SubmissionUploadTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function testUploadMultipleTargets()
4949
$this->executeUpload();
5050
$submissions = $submissionManager->find([SubmissionEntity::FIELD_SOURCE_ID => $postId]);
5151
foreach ($submissions as $submission) {
52+
$this->assertEquals(SubmissionEntity::SUBMISSION_STATUS_IN_PROGRESS, $submission->getStatus());
5253
$this->assertNotEquals(0, $submission->getTargetId());
5354
$this->forceSubmissionDownload($submission);
5455
$submission = $submissionManager->getEntityById($submission->getId());

0 commit comments

Comments
 (0)