- Issue created by @jcandan
- πΊπΈUnited States jcandan
This may not be so simple.
It seems that, while the
item
variable is as yet undefined for the top portion, it is effectively acting as a default setter forlink_attributes
, necessary for theif duplicate_parent
statement just below it.So, keep the
parent.url.getOption('attributes')
and perform theset menu_item_type = 'link'
at the outset. - πΊπΈUnited States mferanda
I see what you mean... this was a change submitted a few years ago. If link was needed initially, then you may as well get rid of the rest of the if and elseif sections. Removing the rest and only having what is in else would be effectively doing the exact same thing.
This should be simple and I'd only consider it a clean-up rather than a bug. **Since it hasn't caused issues for the years being there, I'm going to re-classify this issue.
Did you want to make the change?
- πΊπΈUnited States jcandan
Yeah, if youβre on board for it being just a clean up, this is a great first issue, and Iβve got a colleague Iβd like to mentor on the process.
- πΊπΈUnited States mferanda
Hoped for that scenario. Sounds good... there's a few other issues that seem more like clean-up related items. I'll most likely roll all of them into a 3.7.2 release.
Regardless, I'll try to dig into this further when I review for 3.8.x. After 2 years of no one saying anything about this, no reason to overthink it right now.
- Merge request !72Remove the if block since it will only default to the else... cleanup β (Merged) created by mferanda
-
mferanda β
committed ae9f1b18 on 3.7.x
Issue #3447215 by mferanda, jcandan: Remove undefined item condition in...
-
mferanda β
committed ae9f1b18 on 3.7.x
- Status changed to Fixed
10 months ago 11:19am 20 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.