Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a72f59b

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - magento/magento2#19447: [Backport] chore: remove unused code in admin view of catalog (by @DanielRuf) - magento/magento2#19431: [Backport] Sample Link Issue in Downloadable product in magento-2.2.6 #19344 (by @ansari-krish) - magento/magento2#19430: Fixed issue with Base Currency for website is CND when PayPal Payflow Pro is charging in USD (by @Rykh) - magento/magento2#19239: [Backport] Allow to read HTTP/2 response header. (by @gelanivishal) - magento/magento2#18922: Fixed 18918 Asterisk sign display twice (by @suryakant-krish) Fixed GitHub Issues: - magento/magento2#19344: Sample Link Issue in Downloadable product. (reported by @ansari-krish) has been fixed in magento/magento2#19431 by @ansari-krish in 2.2-develop branch Related commits: 1. eed8485 2. 99dbb54 3. 29eea73 4. 3b6307b 5. e519bc6 - magento/magento2#19127: Cannot connect to Magento 2 market place (reported by @terrybakshi) has been fixed in magento/magento2#19239 by @gelanivishal in 2.2-develop branch Related commits: 1. ebe4af7 - magento/magento2#18918: Asterisk sign display twice (reported by @suryakant-krish) has been fixed in magento/magento2#18922 by @suryakant-krish in 2.2-develop branch Related commits: 1. 9fbf41a 2. fd9a423 3. 7365f5f 4. c870f0d 5. 1197845 6. c230c7e
2 parents 302437a + ad398bf commit a72f59b

File tree

6 files changed

+35
-37
lines changed

6 files changed

+35
-37
lines changed

app/code/Magento/Catalog/view/adminhtml/web/catalog/product/composite/configure.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -469,26 +469,6 @@ define([
469469
}
470470
},
471471

472-
/**
473-
* toggles Selects states (for IE) except those to be shown in popup
474-
*/
475-
/*_toggleSelectsExceptBlock: function(flag) {
476-
if(Prototype.Browser.IE){
477-
if (this.blockForm) {
478-
var states = new Array;
479-
var selects = this.blockForm.getElementsByTagName("select");
480-
for(var i=0; i<selects.length; i++){
481-
states[i] = selects[i].style.visibility
482-
}
483-
}
484-
if (this.blockForm) {
485-
for(i=0; i<selects.length; i++){
486-
selects[i].style.visibility = states[i]
487-
}
488-
}
489-
}
490-
},*/
491-
492472
/**
493473
* Close configuration window
494474
*/

app/code/Magento/Downloadable/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Downloadable.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Downloadable\Api\Data\SampleInterfaceFactory;
1212
use Magento\Downloadable\Api\Data\LinkInterfaceFactory;
1313

14+
/**
15+
* Class for initialization downloadable info from request.
16+
*/
1417
class Downloadable
1518
{
1619
/**
@@ -92,6 +95,8 @@ public function afterInitialize(
9295
}
9396
}
9497
$extension->setDownloadableProductLinks($links);
98+
} else {
99+
$extension->setDownloadableProductLinks([]);
95100
}
96101
if (isset($downloadable['sample']) && is_array($downloadable['sample'])) {
97102
$samples = [];
@@ -107,6 +112,8 @@ public function afterInitialize(
107112
}
108113
}
109114
$extension->setDownloadableProductSamples($samples);
115+
} else {
116+
$extension->setDownloadableProductSamples([]);
110117
}
111118
$product->setExtensionAttributes($extension);
112119
if ($product->getLinksPurchasedSeparately()) {

app/code/Magento/Paypal/Model/Payflowpro.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ public function capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
419419
$request->setTrxtype(self::TRXTYPE_SALE);
420420
$request->setOrigid($payment->getAdditionalInformation(self::PNREF));
421421
$payment->unsAdditionalInformation(self::PNREF);
422+
$request->setData('currency', $payment->getOrder()->getBaseCurrencyCode());
422423
} elseif ($payment->getParentTransactionId()) {
423424
$request = $this->buildBasicRequest();
424425
$request->setOrigid($payment->getParentTransactionId());

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/_menu.less

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@
187187
display: block;
188188
}
189189

190-
// External link marker
190+
// External link marker
191191
[target='_blank'] {
192192
&:after {
193193
&:extend(.abs-icon all);
194194
content: @icon-external-link__content;
195-
font-size: 0.5rem;
195+
font-size: .5rem;
196196
margin-left: @indent__xs;
197197
vertical-align: super;
198198
}
@@ -271,9 +271,17 @@
271271

272272
&._show {
273273
> .submenu {
274+
display: block;
275+
float: left;
276+
left: 100%;
277+
max-width: 1640px;
278+
min-height: 98.65%;
279+
min-width: 100%;
280+
overflow-x: scroll;
281+
position: absolute;
274282
transform: translateX(0);
275283
visibility: visible;
276-
z-index: @submenu__z-index;
284+
z-index: 698;
277285
}
278286
}
279287
}

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060

6161
.abs-field-no-label {
6262
/**
63-
* @codingStandardsIgnoreStart
63+
*@codingStandardsIgnoreStart
6464
*/
6565
#mix-grid .return_length(@field-label-grid__column, @field-grid__columns, '+');
66-
//@codingStandardsIgnoreEnd
6766
margin-left: @_length;
67+
//@codingStandardsIgnoreEnd
6868
}
6969

7070
//
@@ -170,13 +170,6 @@
170170
.admin__control-text,
171171
.admin__control-textarea {
172172
width: 100%;
173-
&.disabled {
174-
background-color: #e9e9e9;
175-
border-color: #adadad;
176-
color: #303030;
177-
cursor: not-allowed;
178-
opacity: .5;
179-
}
180173
}
181174
}
182175

@@ -194,13 +187,10 @@
194187

195188
.admin__field-label {
196189
color: @field-label__color;
190+
cursor: pointer;
197191
margin: 0;
198192
text-align: right;
199193

200-
label {
201-
cursor: pointer;
202-
}
203-
204194
+ br {
205195
display: none;
206196
}
@@ -296,6 +286,14 @@
296286
opacity: 1;
297287
}
298288
}
289+
290+
legend.admin__field-label {
291+
span {
292+
&:after {
293+
display: none;
294+
}
295+
}
296+
}
299297

300298
// ToDo UI: Scope Labels must be moved from right side of each control to the place under the label of the control.
301299
// This code must be removed after Scope Labels are moved completely.
@@ -307,7 +305,11 @@
307305
content: attr(data-config-scope);
308306
display: inline-block;
309307
font-size: @font-size__s;
308+
/**
309+
*@codingStandardsIgnoreStart
310+
*/
310311
left: @_length;
312+
//@codingStandardsIgnoreEnd
311313
line-height: 3.2rem;
312314
margin-left: 2 * @temp_gutter;
313315
position: absolute;

lib/internal/Magento/Framework/HTTP/Client/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ protected function parseHeaders($ch, $data)
432432
{
433433
if ($this->_headerCount == 0) {
434434
$line = explode(" ", trim($data), 3);
435-
if (count($line) != 3) {
435+
if (count($line) < 2) {
436436
$this->doError("Invalid response line returned from server: " . $data);
437437
}
438438
$this->_responseStatus = (int)$line[1];

0 commit comments

Comments
 (0)