contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Page picker causes error #1574

Closed netzarbeiter closed 6 years ago

netzarbeiter commented 6 years ago

You can reproduce this issue in the online demo.

Got to: Content > News > Contao Official Demo News

Error:

Forbidden
What's the matter?
Cannot load record "tl_news.id=10".

If the news get saved before the link is added, everything is okay.

fritzmg commented 6 years ago

Probably related to the table cleanup (see https://github.com/contao/core-bundle/issues/1129 for instance).

leofeyer commented 6 years ago

This is exactly the same problem as here: https://github.com/contao/core-bundle/issues/1129#issuecomment-343124209

We have solved it for the page tree by adding the source parameter (e.g. extras[source]=tl_page.71), which prevents the new record from being purged. The TinyMCE picker, however, does not know about this.

leofeyer commented 6 years ago

Fixed in the commits above.