Problem/Motivation
Trying to change the "Maximum number of menu levels to display" does not work anymore, it's always 1 no matter what I try to set this to.
To clarify:
1) I configure a menu block (in this case the Main Menu)
2) Change the max levels to display to something other than 1, e.g. 3
3) Save the block
No change in the site, expanded menus are not printed in the output.
Go back and check the config, appears my selection of "3" has not been saved, the value is still 1.
Proposed resolution
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | menu-lvls-tst-2384653.chgs_.patch | 2.85 KB | larowlan |
| #24 | interdiff.txt | 1.21 KB | larowlan |
| #18 | menu-lvls-tst-2384653.4.patch | 2.63 KB | larowlan |
| #18 | interdiff.txt | 528 bytes | larowlan |
| #16 | menu-lvls-tst-2384653.3.patch | 2.63 KB | larowlan |
Comments
Comment #1
Jeff Burnz commentedComment #2
swentel commentedComment #3
swentel commentedComment #4
joachim commentedConfirming the bug and the fix.
Comment #5
alexpottLooks like we need a test here - no?
Comment #6
alexpottAlso this feels like a critical piece of functionality is not working.
Comment #7
larowlanWorking on tests
Comment #8
larowlanhoping for red/green
Comment #9
larowlanComment #11
jibranWe are only checking depth can we add level assert as well?
Comment #12
larowlansure
Comment #13
jibranThanks.
Comment #15
jibranI think this broke the other test :)
Comment #16
larowlanya
Comment #18
larowlantake 4
Comment #19
jibranCan't we do it on first attempt and check the values? I think default values are 1 for both depth and level.
Comment #20
larowlanThe values in the final submit are the defaults.
So we need to submit something else to test it saves.
Comment #21
dawehnerSo what about looking at the final configuration entity in order to see whether things got saved?
Comment #22
larowlanBlock->settings is protected so we can't
Comment #23
dawehnerBut there is:
ConfigEntityBase::get()as well as
$block->getPlugin()->getConfiguration()Comment #24
larowlanlike so?
Comment #25
dawehner+1
Let's be honest this critical is kinda a quickfix.
Comment #26
jibranLast interdiff is a delight thanks @dawehner for the suggestion @larowlan++
+1 RTBC.
Comment #27
catchCommitted/pushed to 8.0.x, thanks!