core-geonetwork
core-geonetwork copied to clipboard
Returning to the editor board from the create metadata or metadata import pages displays empty results.
Describe the bug Returning to the editor board from the create metadata or metadata import pages displays empty results.
To Reproduce Steps to reproduce the behavior:
- Login as administrator and load the iso19139 sample metadata.
- Go to the Editor Board --> results are displayed
- Select the option Create metadata and then in the
Contribute
menu the Editor board --> results are displayed - Repeat the previous step (with the Create metadata or import metadata page) --> No results are displayed
Expected behavior The results are displayed.
Additional context The issue is related to this code:
https://github.com/geonetwork/core-geonetwork/blob/955448ff870d8f8bd2918774a8e9996c0e6091ef/web-ui/src/main/resources/catalog/components/search/searchmanager/SearchFormDirective.js#L333
The search url is stored, the first time (step 3) probably empty and it works, but doing the step again (4) causes that the search is not issued.
@fgravin I see you added this code, long time ago. Can you review it to check if removing this code could cause any unwanted issue. I did some checks and apparently not, solving the issue described.