When selecting a view mode for a block using the IPE for the second time WITHOUT saving the page, the original selection of view mode is kept. This does work however the first time.
Steps to reproduce
Add block to panel page (any view mode)
Save page
Using IPE
Place content
On screen
Select block in question and change view mode
(for me i need to refresh as css doesnt load right, this is a separate issue)
New view mode is selected..
WITHOUT saving, repeat the view mode change, it doesn't work for this block nor any other on the page.
Now SAVE the page, you should be able to change the view mode once before having to save after each try.
Ill be watching this closely, please ping me if you need more info or have an idea where to start debugging this, i am happy to contribute my time here to get this fix in.
Thanks,
Z
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | panels-ipe-block-form-settings-2681075-5.patch | 1.12 KB | samuel.mortenson |
Comments
Comment #2
zach.bimson commentedComment #3
samuel.mortensonHey @zach.bimson, what kind of Blocks are you placing? I'm guessing this is an issue specifically with Panelizer fields, but I just want to make sure before moving forward.
Comment #4
zach.bimson commentedSorry for the delay on this, totally forgot about your reply.
The default view mode on the content type has been panelized
The block is a custom block_content type built using the ui
Let me know if you need anything else...
Thanks,
Z
Comment #5
samuel.mortensonThis is way broader than I thought, and seems to affect every Block Plugin's setting!
From debugging, it looks like submitting the Block's configuration form before setting the Panels Display's configuration from TempStore clears the Block Instance's configuration, which is why this was occurring. I'm surprised this hasn't come up earlier, we must have introduced this fairly recently.
At any rate, if you could confirm that this patch fixes you issue I'll commit it ASAP, thanks for the report!
Comment #6
samuel.mortensonI went ahead and committed this as it was blocking other debugging and was critical to IPE use/testing. We need JS testing ASAP :/
Comment #8
zach.bimson commentedAgain, sorry for the delay! I've tested and it works great! thanks for sorting this so quick.