terminal42 / contao-node

Manage content centrally as nodes and reuse them everywhere.
MIT License
29 stars 8 forks source link

Vererbung der Node Mounts wird nicht berücksichtigt #39

Closed gieby closed 6 months ago

gieby commented 2 years ago

System: CONTAO: 4.9.28 contao-node: 1.5.6

Beschreibung: Wenn man einem Benutzer einen Mountpoint auf einen Ordner gibt und dieser anschließend den Fokus auf ein Inhaltsfragment legt, erscheint folgende Fehlermeldung:

An exception occurred while executing 'SELECT DISTINCT 'type' FROM tl_node WHERE id IN()': SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

Schritte zum reproduzieren:

  1. einen Ordner-Node anlegen
  2. in diesem einen Inhalts-Node anlegen
  3. einem Benutzer nur den Ordner-Node als Node-Mount geben
  4. mit diesem Benutzer auf den Namen des Inhalts-Nodes klicken, um ihn zu "fokussieren"

Vermutlich beziehen sich die Bugs #27 und #28 ebenfalls auf dieses Verhalten. Zumindest ist die Fehlermeldung die gleiche.

qzminski commented 1 year ago

Do you mean a configuration like this?

CleanShot 2022-10-31 at 12 51 42 CleanShot 2022-10-31 at 12 52 08
gieby commented 1 year ago

Yes, that's the configuration.

Additionally it seems that if you put the focus on the folder mount the content nodes won't show up.

qzminski commented 1 year ago

Okay, then I'm not able to reproduce that. Would you be able to send me your database to kamil.kuzminski@gmail.com?