#2923 - Fixed redirect on new Item version creation#3069
#2923 - Fixed redirect on new Item version creation#3069tdonohue merged 3 commits intoDSpace:mainfrom
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @Simone-Ramundi ! I've tested this today and verified this fixes the bug. Versioning is now redirecting properly to the submission form
|
Hi @Simone-Ramundi , I have tested the fix and thought it worked for a standard Item (I am redirected to the form for the new version), when trying to create a new version of an item with relations, I get an error message (for reference: I used a standard Item part the dataset provided by DSpace: http://localhost:4000/entities/publication/1974d7d3-9648-4dbe-b083-56374f5314e4): DSpace backend log error: |
|
@pilasou and @Simone-Ramundi : I was able to reproduce @pilasou 's issue as well. After further investigation, I believe the bug that @pilasou has found is directly related to my open PR DSpace/DSpace#9509. I think it should be fixed by that PR, but I'm going to test it further today. So, I'm going to turn PR's report into a new issue ticket and claim it for myself. I think I should be able to fix it in DSpace/DSpace#9509. In summary, I think this PR from @Simone-Ramundi was successful in fixing the frontend bug. However, the frontend fix allowed @pilasou to discover a backend bug that should be fixable in DSpace/DSpace#9509. Thanks @pilasou for your additional testing here! UPDATE: Moved the new bug to #3072 |

References
Description
Fixed user redirect after creating a new version of an item. Replaced the old method
this.getIDHref()withthis.searchData.getSearchByHref().Instructions for Reviewers
List of changes in this PR:
findByItem();To Test:
Checklist
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.