]> BookStack Code Mirror - bookstack/commit
Added test & update to prevent page creation w/ empty slug
authorDan Brown <redacted>
Thu, 1 Sep 2022 11:53:34 +0000 (12:53 +0100)
committerDan Brown <redacted>
Thu, 1 Sep 2022 11:53:34 +0000 (12:53 +0100)
commit34c63e1c303c60f6ca9e149f61b5665d0108f248
tree20e87a96d1f878f4e186546ab6bddd9beafe68af
parentf092c97748ffb9b67f8475b39f8f4f4c29ada0fc
Added test & update to prevent page creation w/ empty slug

Caused by changes to page repo in reference work,
This adds back in the slug generate although at a more central place.
Adds a test case to cover the problematic scenario.
app/Entities/Repos/BaseRepo.php
tests/Entity/PageDraftTest.php