]> BookStack Code Mirror - bookstack/commit
Improved custom homepage check on item deletion
authorDan Brown <redacted>
Mon, 10 Jan 2022 17:04:01 +0000 (17:04 +0000)
committerDan Brown <redacted>
Mon, 10 Jan 2022 17:04:01 +0000 (17:04 +0000)
commit8d91f4369b418aa922e0246fdc57e4755936077d
tree389f1af18ccfade834b34f6001580ea1a1321a7d
parent722aa0457734825c17e136096d6e8e843439b205
Improved custom homepage check on item deletion

Custom homepage usage will now be checked before any actioning
of deletion rather than potentially causing an exception acting
during the deletion.

Previously a deletion could still be created, within the recycle bin,
for the parent which may lead to the page being deleted anyway.

For #3150
app/Entities/Models/Entity.php
app/Entities/Tools/TrashCan.php
tests/HomepageTest.php