locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.32k stars 625 forks source link

Sections URL picker produces error if Model is selected but no instance of the model #1368

Closed dotsi closed 3 years ago

dotsi commented 4 years ago

To reproduce:

  1. open a section with an URL picker in the CMS
  2. select Model
  3. select Content type under WHICH MODEL?
  4. Click the chevron on top to go back to the section

This produces an error: TypeError: Cannot read property '0' of undefined If the user presses save instead of back the section is lost and needs to be deleted from the database.

did commented 3 years ago

thanks @dotsi for the bug report

dotsi commented 3 years ago

thanks @dotsi for the bug report

So happy you are back! Thanks!