File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 79
79
<element name =" sectionHeader" type =" button" selector =" div[data-index='websites']" timeout =" 30" />
80
80
<element name =" sectionHeaderOpened" type =" button" selector =" [data-index='websites']._show" timeout =" 30" />
81
81
<element name =" website" type =" checkbox" selector =" //label[contains(text(), '{{var1}}')]/parent::div//input[@type='checkbox']" parameterized =" true" />
82
+ <element name =" websiteChecked" type =" checkbox" selector =" //label[contains(text(), '{{var1}}')]/parent::div//input[@type='checkbox'][@value='1']" parameterized =" true" />
82
83
</section >
83
84
<section name =" ProductDesignSection" >
84
85
<element name =" DesignTab" type =" button" selector =" //strong[@class='admin__collapsible-title']//span[text()='Design']" />
Original file line number Diff line number Diff line change @@ -175,11 +175,9 @@ protected function getFieldsForFieldset()
175
175
$ label = __ ('Websites ' );
176
176
177
177
$ defaultWebsiteId = $ this ->websiteRepository ->getDefault ()->getId ();
178
- $ isOnlyOneWebsiteAvailable = count ($ websitesList ) === 1 ;
179
178
foreach ($ websitesList as $ website ) {
180
179
$ isChecked = in_array ($ website ['id ' ], $ websiteIds )
181
- || ($ defaultWebsiteId == $ website ['id ' ] && $ isNewProduct )
182
- || $ isOnlyOneWebsiteAvailable ;
180
+ || ($ defaultWebsiteId == $ website ['id ' ] && $ isNewProduct );
183
181
$ children [$ website ['id ' ]] = [
184
182
'arguments ' => [
185
183
'data ' => [
You can’t perform that action at this time.
0 commit comments