Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
pcmt
pcmt
Commits
9bb15be1
Commit
9bb15be1
authored
Feb 02, 2021
by
Piotr Borek
Browse files
#767
translations
parent
055fdb6d
Pipeline
#250194928
passed with stages
in 14 minutes and 43 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
pim/src/PcmtRulesBundle/Connector/Job/Step/CopyProductsRuleStep.php
...mtRulesBundle/Connector/Job/Step/CopyProductsRuleStep.php
+0
-3
pim/src/PcmtRulesBundle/Resources/translations/messages.en_US.yml
...PcmtRulesBundle/Resources/translations/messages.en_US.yml
+6
-0
pim/src/PcmtRulesBundle/Resources/translations/messages.fr_FR.yml
...PcmtRulesBundle/Resources/translations/messages.fr_FR.yml
+6
-0
pim/src/PcmtRulesBundle/Service/CopyProductsRule/CopyProductToProductModel.php
...le/Service/CopyProductsRule/CopyProductToProductModel.php
+1
-1
pim/src/PcmtRulesBundle/Service/CopyProductsRule/CopyProductsRuleProcessor.php
...le/Service/CopyProductsRule/CopyProductsRuleProcessor.php
+0
-2
No files found.
pim/src/PcmtRulesBundle/Connector/Job/Step/CopyProductsRuleStep.php
View file @
9bb15be1
...
...
@@ -66,9 +66,6 @@ class CopyProductsRuleStep extends AbstractStep
return
;
}
$stepExecution
->
addSummaryInfo
(
'sf'
,
$sourceFamily
->
getCode
());
$stepExecution
->
addSummaryInfo
(
'df'
,
$destinationFamily
->
getCode
());
$pqb
=
$this
->
pqbFactory
->
create
([
'default_locale'
=>
null
,
'default_scope'
=>
null
,
...
...
pim/src/PcmtRulesBundle/Resources/translations/messages.en_US.yml
View file @
9bb15be1
...
...
@@ -37,6 +37,12 @@ job_execution.summary:
source_urls_found
:
Source URLs found
files_downloaded
:
Files downloaded
entities_updated
:
Entities updated
associated_product_models_found
:
Associated product models found
associated_product_models_found_in_correct_family
:
Associated product models in correct family
axis_attribute_not_exists_in_source_product
:
Axis attribute not found in source product
sub_entities_found
:
Sub entities found
sub_product_models_created
:
Sub product models created
sub_products_created
:
Sub products created
pim_datagrid
:
cells
:
...
...
pim/src/PcmtRulesBundle/Resources/translations/messages.fr_FR.yml
View file @
9bb15be1
...
...
@@ -37,6 +37,12 @@ job_execution.summary:
source_urls_found
:
FR Source URLs found
files_downloaded
:
FR Files downloaded
entities_updated
:
FR Entities updated
associated_product_models_found
:
FR Associated product models found
associated_product_models_found_in_correct_family
:
FR Associated product models in correct family
axis_attribute_not_exists_in_source_product
:
FR Axis attribute not found in source product
sub_entities_found
:
FR Sub entities found
sub_product_models_created
:
FR Sub product models created
sub_products_created
:
FR Sub products created
pim_datagrid
:
cells
:
...
...
pim/src/PcmtRulesBundle/Service/CopyProductsRule/CopyProductToProductModel.php
View file @
9bb15be1
...
...
@@ -107,7 +107,7 @@ class CopyProductToProductModel
$subEntity
=
$this
->
subEntityFinder
->
findByAxisAttributes
(
$destinationProductModel
,
$axisAttributes
,
$sourceProduct
);
if
(
$subEntity
)
{
$this
->
stepExecution
->
incrementSummaryInfo
(
'subentities_found'
,
1
);
$this
->
stepExecution
->
incrementSummaryInfo
(
'sub
_
entities_found'
,
1
);
$this
->
copy
(
$sourceProduct
,
$subEntity
,
$attributes
);
if
(
$subEntity
instanceof
ProductModelInterface
)
{
...
...
pim/src/PcmtRulesBundle/Service/CopyProductsRule/CopyProductsRuleProcessor.php
View file @
9bb15be1
...
...
@@ -35,8 +35,6 @@ class CopyProductsRuleProcessor
FamilyInterface
$destinationFamily
,
ProductInterface
$sourceProduct
):
void
{
$stepExecution
->
incrementSummaryInfo
(
'processed'
,
1
);
$associations
=
$sourceProduct
->
getAssociations
();
foreach
(
$associations
as
$association
)
{
$models
=
$association
->
getProductModels
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment