Skip to content

Conversation

gelanivishal
Copy link
Contributor

@gelanivishal gelanivishal commented Jul 14, 2018

Original Pull Request

#15339

Description

Fixed set template syntax in block file

Fixed Issues (if relevant)

  1. Template syntax in block file #15345:Template syntax in block file

Manual testing scenarios

N/A

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @gelanivishal. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

$this->setTemplate($templateFile);
} else {
$this->setTemplate('hss/iframe.phtml');
$this->setTemplate('Magento_Paypal::hss/iframe.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

{
if ($this->_isAfterPaymentSave()) {
$this->setTemplate('hss/js.phtml');
$this->setTemplate('Magento_Paypal::hss/js.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}

$this->setTemplate('form.phtml');
$this->setTemplate('Magento_Review::form.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

if ($reviewsCount == 0) {
#return __('Be the first to review this product');
$this->setTemplate('empty.phtml');
$this->setTemplate('Magento_Review::empty.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

if ($item = $this->findItemById($itemAsArray['item_id'], $items)) {
$this->itemPriceRenderer->setItem($item);
$this->itemPriceRenderer->setTemplate('checkout/cart/item/price/sidebar.phtml');
$this->itemPriceRenderer->setTemplate('Magento_Tax::checkout/cart/item/price/sidebar.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

protected function _prepareLayout()
{
$this->setTemplate('edit.phtml');
$this->setTemplate('Magento_UrlRewrite::edit.phtml');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

/** @var \Magento\User\Model\ResourceModel\User\Collection $users */
$users = $this->_userCollectionFactory->create()->load();
$this->setTemplate('role/users.phtml')->assign('users', $users->getItems())->assign('roleId', $roleId);
$this->setTemplate('Magento_User::role/users.phtml')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert fix in places when the template specified dynamically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ihor-sviziev ihor-sviziev requested review from sidolov and removed request for sidolov July 17, 2018 12:05
Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
It looks like you applied not all changes.
Take a look at 46e3c0c - forwardport should contains the same changeset

@ihor-sviziev ihor-sviziev self-assigned this Jul 18, 2018
@gelanivishal
Copy link
Contributor Author

Hello @ihor-sviziev,

Please review this commit b405dfa and also check @sidolov's requested comments.

Thank you.

@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Jul 18, 2018

@gelanivishal sure, you reverted changes that @sidolov requested, but it's still not full list of changes.
Example: there are changes in magento newsletter, offline payments modules, but in this PR there are no such changes. Just compare 46e3c0c with your PR

@gelanivishal
Copy link
Contributor Author

gelanivishal commented Jul 23, 2018

Hello @ihor-sviziev, @sidolov,

Other files are already changes in 2.3-develop, Please check your side at once.

Thank you.

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-2593 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

Hi @gelanivishal. Thank you for your contribution.
We will aim to release these changes as part of 2.3.0.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants