corcel icon indicating copy to clipboard operation
corcel copied to clipboard

Page as a child menu item return null to parent() method

Open HenriqueSPin opened this issue 8 years ago • 3 comments

  • Corcel Version: 2.5
  • Framework Name & Version: Laravel 5.4
  • PHP Version: 7.1
  • Database Driver & Version: MySQL Ver 14.14 Distrib 5.7.17

Description:

When the menu item is a child and a page at the same time, the parent is null.

Steps To Reproduce:

Create a menu in your backoffice with a page as a root item child. Iterate this menu in laravel or blade or PHP. The $item->parent() or $item->first()->parent() returns null.

HenriqueSPin avatar Nov 20 '17 16:11 HenriqueSPin

Hello, how are you? I sent a pull request which I believe corrects this issue. Thank you!

luizvid avatar Jan 17 '19 13:01 luizvid

Hi there, I think I'm hitting this bug - any ideas what needs to be done to the PR in order to merge? Looks like the PR might be ok but CI is misconfigured?!

madwort avatar Jul 31 '20 15:07 madwort

Hello, how are you? I'm sorry, but I still need to remember what I did in this PR to answer you. I'll take a look at this as soon as possible to get back to you.

luizvid avatar Aug 03 '20 20:08 luizvid