Book type and status being reset when exiting
Describe the bug Reported by James at White Horse Press via email: I noticed that when navigating away from my test book and then going back to it, it sets the type to “book set” and the status to “recalled” even though I previously set it to “edited book” / “active”. This happens even after I click “save”. Is this as expected? It seems to happen every time I try it. See attached a screen recording to illustrate. I also tried logging out just after saving, instead of navigating away; and then logging in again; and got the same result.
Screenshots Video of issue: https://cloud.copim.ac.uk/apps/files/?dir=/WP5/Thoth%20Users/White%20Horse%20Press&fileid=282484
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
This sounds like it might be related to the Yew bug for which we hoped a workaround would become available after upgrade to v0.19. Implementing the workaround is a priority.
I don't experience the same issue when looking at that book - it consistently shows up as "edited book" / "active" when I've viewed it - so hopefully the database values are correct at least.
@CameronOBP just reported seeing the same thing for all the books he checked, i.e. all are displayed as "Recalled" (on Safari on a Mac). In a different browser on the same Mac (Brave, a Chrome variant) the display was correct (he checked one book which was "Forthcoming" - I confirmed this was the database value and displayed as such in Firefox on Linux).
He notes North American users are more likely to be on Macs, so more likely to hit this. Didn't realise from the original report that the erroneous behaviour is so consistent!
Not sure if here is the best space to record those, but James Rice/WHP has reported another display issue w. discrepancy between recorded data, and data displayed when opening the Edit view ...
He writes:
I have found another instance of a field that seems to display data other than the ‘true’ data under the surface. Similar to the bug in the book type / status, which we have discussed in the past. This is in the ‘contribution type’ for a contributor. The data seems correct because it correctly says ‘author’ where I would expect it on the main book page; but when you open the ‘edit contribution’ window, it shows as ‘indexer’ even if the true value is ‘author’. See attached a couple screenshots – from our book Contested Mountains, author Rob Lambert; but the same thing is happening on other books too. Oddly, if the true value is ‘Editor’, the bug does not present, and instead the correct value appears on both the main page and in the editing window.
In a similar vein, I can report that on my end (using Windows 10 & Firefox), I've got that issue when editing Contributor details, particularly with the Yes/No field marking a Main contribution... i.e. when first recording the Main Contribution as Yes, this subsequently is displayed as No when revisiting the Edit view.