Skip to content
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

Removed mageMenu widget dependency from breadcrumbs component #15178

Conversation

vovayatsyuk
Copy link
Member

@vovayatsyuk vovayatsyuk commented May 12, 2018

Description

For now, breadcrumbs on the product page hardly rely on mageMenu widget. This commit completely removes this dependency to allow to use third-party menus.

Fixed Issues

  1. Invisible breadcrumbs at product page when mageMenu widget is not used #14987: Invisible breadcrumbs at product page when mageMenu widget is not used

Manual testing scenarios

  1. Open app/code/Magento/Theme/view/frontend/templates/html/topmenu.phtml
  2. Remove the following code from the template:
data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'
  1. Navigate to the product page.
  2. Breadcrumbs are not rendered.

Comments

  • I removed categoryId from the crumb name, since links id is a random number generated by jQueryUI menu. It has nothing to actual category id.
  • Two tests where removed, because I removed _init method completely

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)

@VladimirZaets
Copy link
Contributor

Hi, @vovayatsyuk, I took your PR into processing, thank you for collaboration.

@magento-engcom-team
Copy link
Contributor

Hi @vovayatsyuk. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.2.5 release.

magento-engcom-team added a commit that referenced this pull request Jun 2, 2018
…eadcrumbs component #15178 #15478

 - Merge Pull Request #15478 from vovayatsyuk/magento2:2.3-fix-breadcrumbs-without-mageMenu
 - Merged commits:
   1. 7b1d1b6
   2. fd03f7c
magento-engcom-team pushed a commit that referenced this pull request Jun 2, 2018
magento-engcom-team added a commit that referenced this pull request Jun 2, 2018
Accepted Public Pull Requests:
 - #15646: [Forwardport] Fixed typo error (by @vgelani)
 - #15658: [Forwardport] Fixed set template syntax issue (by @vgelani)
 - #15659: [Forwardport] chore: remove extraneous cursor property (by @DanielRuf)
 - #15667: [Forwardport] set correct annotation (by @vgelani)
 - #15670: [Forwardport] Wrong annotation in _toOptionArray - magento/framework/Data/� (by @vgelani)
 - #15682: [Forwardport] Wrong Last orders amount on dashboard #15660 (by @ankurvr)
 - #15576: [Forwardport] [fix] typo in method name _getCharg[e]ableOptionPrice (by @osrecio)
 - #15623: Fix translations (by @cherednichenkoa)
 - #15478: [Forwardport] Removed mageMenu widget dependency from breadcrumbs component #15178 (by @vovayatsyuk)
 - #15177: Adding support for variadic arguments' method in generated proxy c� (by @bartek9007)


Fixed GitHub Issues:
 - #15601: Wrong annotation in formatDateTime - lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php (reported by @sanjay-wagento) has been fixed in #15667 by @vgelani in 2.3-develop branch
   Related commits:
     1. 2feaf30

 - #15601: Wrong annotation in formatDateTime - lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php (reported by @sanjay-wagento) has been fixed in #15670 by @vgelani in 2.3-develop branch
   Related commits:
     1. 11923bc

 - #15660: Wrong order amount on dashboard on Last orders listing when having more than one website with different currencies (reported by @ankurvr) has been fixed in #15682 by @ankurvr in 2.3-develop branch
   Related commits:
     1. f5f3c76
     2. d696233
     3. 424324e
     4. eca36b2
     5. 98265ab
     6. ac220b7
     7. 12041e1

 - #14987: Invisible breadcrumbs at product page when mageMenu widget is not used (reported by @vovayatsyuk) has been fixed in #15478 by @vovayatsyuk in 2.3-develop branch
   Related commits:
     1. 7b1d1b6
     2. fd03f7c
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.

3 participants