]> BookStack Code Mirror - bookstack/commit
References: Fixed references count/list recycle bin interaction
authorDan Brown <redacted>
Mon, 1 Apr 2024 16:08:53 +0000 (17:08 +0100)
committerDan Brown <redacted>
Mon, 1 Apr 2024 16:08:53 +0000 (17:08 +0100)
commita33dbcb04a7c64bb5198bd6a7cc421f50e0cc541
treedf11ed36b8ec8a468ba0486dddd185d4005df067
parent58f6219cb3cf937fef59d03d4420de1ba64df436
References: Fixed references count/list recycle bin interaction

Count and reference list would get references then attempt to load
entities, which could fail to load if in the recycle bin.
This updates the queries to effectively ignore references for items we
can't see (in recycle bin).
Added test to cover.

For #4918
app/References/ReferenceFetcher.php
tests/References/ReferencesTest.php