Skip to content

Commit

Permalink
Merge pull request #490 from oat-sa/fix/ADF-1827/sync-translations-on…
Browse files Browse the repository at this point in the history
…-authoring

fix/ADF-1827/sync-translations-on-authoring
  • Loading branch information
shaveko authored Dec 5, 2024
2 parents 886cbdf + 93b1b26 commit be66546
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-version: [ '7.4', '8.0', '8.1' ]
php-version: [ '8.0', '8.1' ]
include:
- php-version: '8.1'
coverage: true
Expand Down
7 changes: 7 additions & 0 deletions actions/class.Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
use oat\generis\model\resource\exception\ResourceDeletionException;
use oat\tao\model\resources\Exception\PartialClassDeletionException;
use oat\tao\model\Lists\Business\Validation\DependsOnPropertyValidator;
use oat\tao\model\Translation\Service\TranslationSyncService;

/**
* Tests Controller provide actions performed from url resolution
Expand Down Expand Up @@ -251,6 +252,7 @@ public function authoring()
);
}
if ($this->getRequestParameter('originResourceUri') !== null) {
$this->getTranslationSyncService()->syncById($this->getRequestParameter('originResourceUri'));
$authoringUrl = sprintf(
'%s&originResourceUri=%s',
$authoringUrl,
Expand Down Expand Up @@ -331,4 +333,9 @@ private function getResourceDeleter(): ResourceDeleterInterface
{
return $this->getPsrContainer()->get(ResourceDeleter::class);
}

private function getTranslationSyncService(): TranslationSyncService
{
return $this->getPsrContainer()->get(TranslationSyncService::class);
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"require": {
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/generis": ">=15.39.0",
"oat-sa/tao-core": ">=54.25.0",
"oat-sa/tao-core": ">=54.27.0",
"oat-sa/extension-tao-backoffice": ">=6.0.0",
"oat-sa/extension-tao-item": ">=12.5.0"
},
Expand Down

0 comments on commit be66546

Please sign in to comment.