ezsystems/ezpublish-kernel — pull request #756 by yannickroger (2014-02-27 10:32:14+00:00)
Title: Fix EZP-22387: Error rendering a page block with trashed content

Link: https://jira.ez.no/browse/EZP-22387

## Description
Items located in the trash are returned as valid content by ezpage. In order to avoid that, we are making sure items returned are available in `ezcontentobject_tree`.

It only makes it a closer match to the legacy SQL request from ezflow:
https://github.com/ezsystems/ezflow/blob/483e6ddfb13251eb2b2841edbfde14e069b27236/packages/ezflow_extension/ezextension/ezflow/classes/ezflowpool.php#L96

## Test
Manual tests.