]> BookStack Code Mirror - bookstack/commit
Fixed restore revision save order, Added restore summary testing
authorDan Brown <redacted>
Sat, 2 Jan 2021 16:42:05 +0000 (16:42 +0000)
committerDan Brown <redacted>
Sat, 2 Jan 2021 16:42:05 +0000 (16:42 +0000)
commit024b0d8a64059d6c125c0a91411a0f7a492a9d6a
treed75f2fd41d65e54cdd48999fbd30a6b42881806e
parent83d77d516665c41ca445a93119dfd97311bfb498
Fixed restore revision save order, Added restore summary testing

Found during review of #2353, A revision would be stored before a
restore which would result with a duplicate revision and the new summary
would be assigned against the wrong content.
This change saves the revison after restore and adds test to check the
content and summary text.
app/Entities/Repos/PageRepo.php
resources/lang/en/entities.php
tests/Entity/PageRevisionTest.php