backdrop-contrib / mini_layouts

Provide blocks which allow positioning content within them in layouts.
GNU General Public License v2.0
7 stars 4 forks source link

Creating a mini layout with the same name as an existing layout creates errors #30

Closed argiepiano closed 2 years ago

argiepiano commented 2 years ago

Steps to reproduce

  1. Create a normal layout with machine name 'test'. Add some context and other stuff like blocks
  2. Create a mini layout and use 'test' in the Admin label. Save it.

You get:

Screen Shot 2022-06-01 at 6 12 11 PM

and the mini layout shows the context and other stuff from the normal layout itself:

Screen Shot 2022-06-01 at 6 12 44 PM

Trying to delete it you get:

Screen Shot 2022-06-01 at 6 13 10 PM

And then a fatal error:

Screen Shot 2022-06-01 at 6 13 28 PM
argiepiano commented 2 years ago

This should have the same behavior as a normal layout when you try to use an existing machine name:

Screen Shot 2022-06-01 at 6 15 17 PM