Skip to content

[Backport] Fixed set template syntax issue #16112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
acf52ec
Product placeholder image resize issue #13636
chirag-wagento Jun 4, 2018
e7fc759
Merge pull request #1 from chirag-wagento/2.1-develop-PR-port-15758
chirag-wagento Jun 4, 2018
0b5167e
Merge pull request #3 from chirag-wagento/2.1-develop-PR-port-15789
chirag-wagento Jun 5, 2018
682a932
Merge pull request #5 from chirag-wagento/2.1-develop-PR-port-15790
chirag-wagento Jun 5, 2018
3c88933
Removed unused class from forms less file.
chirag-wagento Jun 5, 2018
72d8d08
Merge pull request #7 from chirag-wagento/2.1-develop-PR-port-15791
chirag-wagento Jun 5, 2018
c080b15
Added row_id to the flat action indexer so the value isn't set to 0 f…
lewisvoncken Jan 31, 2018
ac0e159
Moved the indexAll after the product save in the Indexer Product Flat…
lewisvoncken May 5, 2018
515dbae
Merge pull request #9 from chirag-wagento/2.1-develop-PR-port-15010
chirag-wagento Jun 5, 2018
24cea81
fix tets fixture and mark return processor as @api
seruymt Apr 24, 2018
a21c213
Merge pull request #12 from chirag-wagento/2.1-develop-PR-port-14842
chirag-wagento Jun 5, 2018
10fd645
Merge pull request #15 from chirag-wagento/2.1-develop-PR-port-14805
chirag-wagento Jun 5, 2018
391eb00
Merge remote-tracking branch 'upstream/2.1-develop' into 2.1-develop
chirag-wagento Jun 6, 2018
29cd4e2
Merge pull request #20 from chirag-wagento/2.1-develop-PR-port-15558
chirag-wagento Jun 7, 2018
fa35876
Wrong Last orders amount on dashboard #15660
ankurvr Jun 1, 2018
a5990ec
Merge pull request #24 from chirag-wagento/2.1-develop-PR-port-15661
chirag-wagento Jun 10, 2018
f34c978
small refactoring to better code readability
likemusic Jun 11, 2018
a7fc075
Merge pull request #28 from chirag-wagento/2.1-develop-PR-port-16010
chirag-wagento Jun 12, 2018
324ee50
added new variables
Karlasa Jun 11, 2018
41b4775
added new primary button variables
Karlasa Jun 11, 2018
f530c43
Merge pull request #31 from chirag-wagento/2.1-develop-PR-port-16012
chirag-wagento Jun 12, 2018
c87e8af
checkout page cart icon color fix
Karlasa Jun 11, 2018
a1a79b4
Merge pull request #33 from chirag-wagento/2.1-develop-PR-port-16002
chirag-wagento Jun 12, 2018
b5e4c23
Merge pull request #36 from chirag-wagento/2.1-develop-PR-port-15991
chirag-wagento Jun 12, 2018
7517bbc
Merge remote-tracking branch 'upstream/2.1-develop' into 2.1-develop
chirag-wagento Jun 12, 2018
28e922c
Merge branch '2.1-develop' of github.com:chirag-wagento/magento2 into…
chirag-wagento Jun 12, 2018
31aeccd
Merge remote-tracking branch 'upstream/2.1-develop' into 2.1-develop
chirag-wagento Jun 14, 2018
3d13464
Solve backport Fixed set template syntax issue.
chirag-wagento Jun 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions app/code/Magento/Backend/Block/Widget/Form/Element/Dependence.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,17 @@ protected function _toHtml()
if (!$this->_depends) {
return '';
}
return '<script>
require(["mage/adminhtml/form"], function(){
new FormElementDependenceController(' .
$this->_getDependsJson() .
($this->_configOptions ? ', ' .
$this->_jsonEncoder->encode(
$this->_configOptions
) : '') . '); });</script>';

$dependsJson = $this->_getDependsJson();
$configOptions = $this->_configOptions ? $this->_jsonEncoder->encode($this->_configOptions) : null;
$configOptionsStr = $configOptions ? ', ' . $configOptions : '';
$paramsStr = $dependsJson . $configOptionsStr;

return "<script>
require(['mage/adminhtml/form'], function(){
new FormElementDependenceController({$paramsStr});
});
</script>";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ public function __construct(
$this->_storeManager = $storeManager;
$this->_currencyLocator = $currencyLocator;
$this->_localeCurrency = $localeCurrency;
$defaultBaseCurrencyCode = $this->_scopeConfig->getValue(
\Magento\Directory\Model\Currency::XML_PATH_CURRENCY_BASE,
'default'
);
$defaultBaseCurrencyCode = $currencyLocator->getDefaultCurrency($this->_request);
$this->_defaultBaseCurrency = $currencyFactory->create()->load($defaultBaseCurrencyCode);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/checkbox.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/checkbox.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/multi.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/multi.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/radio.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/radio.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Opti
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/select.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/select.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Bundle extends \Magento\Backend\Block\Widget implements \Magento\Backend\B
/**
* @var string
*/
protected $_template = 'product/edit/bundle.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Option extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Search extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option/search.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option/search.phtml';

/**
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Selection extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option/selection.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option/selection.phtml';

/**
* Catalog data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/checkbox.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/checkbox.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/multi.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/multi.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/radio.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/radio.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Opti
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/select.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/select.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function write($storeId, $productId, $valueFieldSuffix = '')

if (!empty($updateData)) {
$updateData += ['entity_id' => $productId];
$updateData += ['row_id' => $productId];
$updateFields = [];
foreach ($updateData as $key => $value) {
$updateFields[$key] = $key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class ReturnProcessor
*
* @api
*/
class ReturnProcessor
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/CustomerData/Wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected function getImageData($product)
: 'Magento_Catalog/product/image_with_borders';

try {
$imagesize = $helper->getResizedImageInfo();
$imagesize = [$helper->getWidth(), $helper->getHeight()];
} catch (NotLoadInfoImageException $exception) {
$imagesize = [$helper->getWidth(), $helper->getHeight()];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
.action {
&.showcart {
&:before {
.lib-css(color, @primary__color);
.lib-css(color, @button__color);
}

&:hover:before {
.lib-css(color, @button__hover__color);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ public function testProductUpdate()
$this->_processor->getIndexer()->isScheduled(),
'Indexer is in scheduled mode when turned to update on save mode'
);
$this->_processor->reindexAll();

$this->_product->load(1);
$this->_product->setName('Updated Product');
$this->_product->save();

$this->_processor->reindexAll();

$category = $categoryFactory->create()->load(9);
$layer = $listProduct->getLayer();
$layer->setCurrentCategory($category);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

use Magento\Sales\Model\Order\ShipmentFactory;

require 'order.php';

$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
Expand Down Expand Up @@ -36,4 +39,10 @@

$order->setIsInProcess(true);

$transaction->addObject($invoice)->addObject($order)->save();
$items = [];
foreach ($order->getItems() as $orderItem) {
$items[$orderItem->getId()] = $orderItem->getQtyOrdered();
}
$shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items);

$transaction->addObject($invoice)->addObject($shipment)->addObject($order)->save();
6 changes: 6 additions & 0 deletions lib/web/css/source/lib/_buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@
// ---------------------------------------------

.lib-button-primary(
@_button-font-family: @button-primary__font-family,
@_button-font-size: @button-primary__font-size,
@_button-font-weight: @button-primary__font-weight,
@_button-line-height: @button-primary__line-height,
@_button-width: @button-primary__width,
@_button-margin: @button-primary__margin,
Expand All @@ -300,6 +303,9 @@
@_button-gradient-direction: @button-primary__gradient-direction
) {
.lib-button(
@_button-font-family: @_button-font-family,
@_button-font-size: @_button-font-size,
@_button-font-weight: @_button-font-weight,
@_button-line-height: @_button-line-height,
@_button-width: @_button-width,
@_button-margin: @_button-margin,
Expand Down
2 changes: 0 additions & 2 deletions lib/web/css/source/lib/_forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,9 @@
.lib-css(margin, @_margin);
.lib-css(padding, @_padding);
letter-spacing: -.31em;
//word-spacing: -.43em;

> * {
letter-spacing: normal;
//word-spacing: normal;
}

> .legend {
Expand Down
3 changes: 3 additions & 0 deletions lib/web/css/source/lib/variables/_buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
@button__active__gradient-color-end: false;

// Primary button
@button-primary__font-family: @button__font-family;
@button-primary__font-size: @button__font-size;
@button-primary__font-weight: @button__font-weight;
@button-primary__line-height: false;
@button-primary__width: false;
@button-primary__margin: false;
Expand Down