Selection of Template Records in a draft workspace doesn't filter start/endtime and hidden field correctly
In t3lib_tstemplate.php the template records from the root line is collected by a series of SQL statements. Template Records are filtered with $this->whereClause which includes check for "enableFields" and "deleted", all initialize in the init() function.
Under preview in draft workspaces the correct behaviour would be to select all records and filter away those which are marked deleted, hidden in the workspace, start/endtime in workspace etc. This doesn't happen at the moment.
However, I don't consider the fix trivial because it must be made sure that any draft composition of template records is _NOT_cached (which could affect online site).
(issue imported from #M2946)