Skip to content

Commit

Permalink
Merge pull request #451 from AcclaroInc/release/3.2.7
Browse files Browse the repository at this point in the history
Release/3.2.7
  • Loading branch information
bhupeshappfoster authored Jun 6, 2023
2 parents c838504 + de07e77 commit 816c040
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .craftplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"pluginName": "Translations for Craft",
"pluginDescription": "Drive global growth with simplified translation workflows.",
"pluginVersion": "3.2.6",
"pluginVersion": "3.2.7",
"pluginAuthorName": "Acclaro",
"pluginVendorName": "Acclaro",
"pluginAuthorUrl": "http://www.acclaro.com/",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 3.2.7 - 2023-06-06

### Fixed
- An issue where deliveries failed to sync back. ([AcclaroInc#451](https://github.com/AcclaroInc/craft-translations/pull/451))

## 3.2.6 - 2023-05-29

### Added
Expand Down
4 changes: 3 additions & 1 deletion src/services/translator/AcclaroTranslationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ public function updateFile(Order $order, FileModel $file)

// find the matching file
foreach ($fileInfoResponse as $fileInfo) {
if ($fileInfo->fileid == $file->serviceFileId && $targetLangCode == $fileInfo->targetlang->code) break;
// Below encode decode will make sure we get data as object instead of array
$targetLangData = json_decode(json_encode($fileInfo->targetlang));
if ($fileInfo->fileid == $file->serviceFileId && $targetLangCode == $targetLangData->code) break;

$fileInfo = null;
}
Expand Down

0 comments on commit 816c040

Please sign in to comment.