Skip to content

Widget category tree is not rendered correctly #39008

@sheepfy

Description

@sheepfy

Preconditions and environment

  • Magento version latest 2.4.7-p1

If you have deeper category levels, like till level 5 or 6, if you open an widget, place the widget on Anchor Categories, specific categories, the category tree in there, will not render more than 3 level due to incorrect handleOpenNode function.

This fix is a copy paste from the working handleOpenNode function from there: vendor/magento/module-catalog/view/adminhtml/templates/catalog/category/tree.phtml

Example tree before the fix:
image

Example tree after the fix:
image

Issue fixed by this PR #39007

Steps to reproduce

On vanila magento with sampledata, create 2 more categories under Woman -> Tops -> Jackets
Go to widgets -> pick one or create one -> select Anchor Categories -> Specific categories -> Open category tree

Expected result

Have all the categories available in the tree

Actual result

Tree is not fully rendered

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: WidgetIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Priority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.7-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions