Skip to content

Commit 1c3361c

Browse files
authored
Merge pull request #708 from akeneo/release/104.3.14
104.3.14
2 parents b46c77c + bcaf334 commit 1c3361c

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,8 @@
509509

510510
### Version 104.3.13 :
511511
* Symfony HTTP Client requirement updated
512+
513+
### Version 104.3.14 :
514+
* PGTO-340: Fix job executor date format
515+
* PGTO-462: Set attribute code to lowercase for options
516+
* Fix non-scopable localizable attribute import

Executor/JobExecutor.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Magento\Framework\Message\ManagerInterface as MessageManagerInterface;
2424
use Magento\Framework\Phrase;
2525
use Magento\Framework\Serialize\SerializerInterface;
26+
use Magento\Framework\Stdlib\DateTime;
2627
use Symfony\Component\Console\Output\OutputInterface;
2728

2829
/**
@@ -357,7 +358,7 @@ public function execute(string $code, ?OutputInterface $output = null)
357358
$isError = true;
358359
}
359360

360-
$this->lastSuccessExecutedDate[$this->getCurrentJobClass()->getFamily()] = date('y-m-d H:i:s');
361+
$this->lastSuccessExecutedDate[$this->getCurrentJobClass()->getFamily()] = date(DateTime::DATETIME_PHP_FORMAT);
361362

362363
// If last family, force proceed with after run steps
363364
if (array_slice($productFamiliesToImport, -1)[0] === $family
@@ -689,7 +690,7 @@ public function setJobStatus(int $status, $job = null)
689690
}
690691

691692
if ($status === JobInterface::JOB_SCHEDULED) {
692-
$job->setScheduledAt(date('y-m-d H:i:s'));
693+
$job->setScheduledAt(date(DateTime::DATETIME_PHP_FORMAT));
693694
}
694695

695696
$job->setStatus($status);
@@ -713,7 +714,7 @@ public function beforeRun()
713714
'akeneo_connector_import_start_' . strtolower($this->currentJob->getCode()),
714715
['executor' => $this]
715716
);
716-
$this->currentJob->setLastExecutedDate(date('y-m-d H:i:s'));
717+
$this->currentJob->setLastExecutedDate(date(DateTime::DATETIME_PHP_FORMAT));
717718
$this->setJobStatus(JobInterface::JOB_PROCESSING);
718719
}
719720

@@ -747,7 +748,7 @@ public function afterRun($error = null, $onlyStop = null)
747748
}
748749

749750
if ($this->currentJob->getCode() === JobExecutor::IMPORT_CODE_PRODUCT) {
750-
$this->currentJob->setLastSuccessDate(date('y-m-d H:i:s'));
751+
$this->currentJob->setLastSuccessDate(date(DateTime::DATETIME_PHP_FORMAT));
751752
$this->currentJob->setLastSuccessExecutedDate($this->json->serialize($this->lastSuccessExecutedDate));
752753

753754
if ($this->currentJob->getStatus() === JobInterface::JOB_ERROR) {
@@ -757,7 +758,7 @@ public function afterRun($error = null, $onlyStop = null)
757758

758759
if ($error === null && $this->currentJob->getStatus() !== JobInterface::JOB_ERROR) {
759760
if ($this->currentJob->getCode() !== JobExecutor::IMPORT_CODE_PRODUCT) {
760-
$this->currentJob->setLastSuccessDate(date('y-m-d H:i:s'));
761+
$this->currentJob->setLastSuccessDate(date(DateTime::DATETIME_PHP_FORMAT));
761762
$this->currentJob->setLastSuccessExecutedDate($this->currentJob->getLastExecutedDate());
762763
}
763764
$this->setJobStatus(JobInterface::JOB_SUCCESS);

Helper/Store.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public function getAllStores()
210210
$this->getStores(['channel_code']), // channel
211211
$this->getStores(['currency']), // USD
212212
$this->getStores(['channel_code', 'currency']), // channel-USD
213+
$this->getStores(['lang', 'currency']), // en_US-USD
213214
$this->getStores(['lang', 'channel_code', 'currency']) // en_US-channel-USD
214215
);
215216

Job/Option.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ public function insertData()
264264
$this->logImportedEntities($this->logger);
265265
}
266266

267+
$connection->update($tmpTable, ['attribute' => new Expr('LOWER(`attribute`)')]);
268+
267269
/* Remove option without an admin store label */
268270
if (!$this->configHelper->getOptionCodeAsAdminLabel()) {
269271
/** @var string $localeCode */

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"nyholm/psr7": "^1.5"
1515
},
1616
"type": "magento2-module",
17-
"version": "104.3.13",
17+
"version": "104.3.14",
1818
"license": [
1919
"OSL-3.0",
2020
"AFL-3.0"

0 commit comments

Comments
 (0)