Views does not create parent local task for a default local task

Created on 21 September 2016, over 8 years ago
Updated 15 September 2023, over 1 year ago

When choosing to create a default menu tab, Views provides an option to create a parent menu tab. However, there does not appear to be any logic on the backend to actually make this occur.

Steps to reproduce:

  1. Edit the Content view (admin/structure/views/view/content/edit)
  2. Add a new page display
  3. Use path admin/content/test/one
  4. Add a menu item entry with Type "Default tab" and Menu link title "Child"
  5. For the Parent menu item, choose "Menu tab" with Menu link title "Parent"
  6. Save the View
  7. Visit admin/content expecting to see tab "Parent" appear. Scratch your head and curse the heavens because it's not there.
  8. Visit admin/content/test and note that the route does exist. It's just the local tasks that haven't been created properly.
πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States kevin.dutra

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom somersoft

    Found that the block disappeared using #88 patch with D9.5.x.
    Updated the patch file to restore it.

  • last update over 1 year ago
    30,335 pass, 1 fail
  • last update over 1 year ago
    Custom Commands Failed
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    Took patch 88 and updated it to Drupal 10.3

  • First commit to issue fork.
  • πŸ‡¨πŸ‡¦Canada mandclu

    I put the patch from #92 into an MR, and also incorporated the change introduced in #91, since I did observe that the tabs were missing, and that fixed it for me.

    All that being said, I don't see the expected menu item after applying these changes, so leaving the issue as Needs work.

  • Pipeline finished with Failed
    9 months ago
    Total: 307s
    #249893
  • Pipeline finished with Failed
    9 months ago
    Total: 180s
    #249911
  • Pipeline finished with Failed
    9 months ago
    Total: 949s
    #250587
  • πŸ‡¨πŸ‡¦Canada mandclu

    UPDATE: I realized, in working on this more, that I was actually trying to solve a different use case: have the default menu tab provide a normal menu item. As such, I wasn't really testing the right things. I'll continue fixing my own problem in πŸ› For a page display designated "Default menu tab" a parent menu link is not created Active .

    That said, there's still some work needed to get the unit tests passing here. I was able to fix the linters, but it looks like a little more work is needed to get the PHPUnit checks passing.

  • First commit to issue fork.
  • Pipeline finished with Canceled
    9 months ago
    Total: 151s
    #256042
  • Pipeline finished with Canceled
    9 months ago
    Total: 150s
    #256044
  • Pipeline finished with Failed
    9 months ago
    #256045
  • First commit to issue fork.
  • Pipeline finished with Failed
    29 days ago
    Total: 104s
    #470373
  • πŸ‡³πŸ‡±Netherlands casey

    Rebased the MR.

    Attached patch is a snapshot of the latest state of the MR for safe usage with composer patches.

Production build 0.71.5 2024