SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

On page save error, structures are lost #242

Closed DanBrooker closed 7 years ago

DanBrooker commented 7 years ago

Steps

  1. Create a new page
  2. Add a structure (and not a title for example)
  3. Save
  4. Save fails (title validation), which re-renders 'edit'
  5. Structure is missing

Not sure why this happens or how to fix

Here's my structure if that helps.

  theme.structures = [
    {
      name: 'slide',
      structure_parts: [
        { name: 'image', title: 'Image', partable_type: 'Spina::Photo' },
        { name: 'description', title: 'Description', partable_type: 'Spina::Text' }
      ]
    }
  ]
DanBrooker commented 7 years ago

Thanks @Bramjetten