Issue Bug Closed

#64654If a sys_template record has only "basedOn" that were already included, an SQL error is shown

Nils Blattner 01/30/15, 17:16 updated 10/02/18, 11:46

Description

Hi there

Recursive inclusion of templates generates an SQL error, if the (already) included template is the only listed in “basedOn”:

  • “base template” includes
    • “content rendering” includes
      • “base template”

Because “content rendering” only has one “basedOn” which is already included before, the SQL generated contains “uid IN ()” and results in an error.
Of course recursion is not desirable, but more complex scenarios can be imagined easily, that also produce this error. If only templates are “basedOn”, that are already included previously, the SQL is faulty.

Attached patch would take care of that.

PS: T3 6.2.9

Kind regards
Nils

Reviews 2