You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
floriangantner
changed the title
patch cms request has the wrong projection
patch site object in cms has wrong projection in response
Nov 7, 2023
floriangantner
changed the title
patch site object in cms has wrong projection in response
patch site object in cms has siteobject with defaultProjection in response
Nov 7, 2023
Describe the bug
The site object is usually returned in allLanguages Projection.
dspace-angular/src/app/core/data/site-data.service.ts
Line 51 in 30543a4
Using the cms metadata component to edit the site object returns some patch(ed) Object with the default projection.
dspace-angular/src/app/admin/edit-cms-metadata/edit-cms-metadata.component.ts
Line 78 in 30543a4
To Reproduce
Steps to reproduce the behavior:
define and configure some cms in two languages (e.g. en,de)
Edit both of the entries and save.
You are returned to the dropdown of selected cms metadata.
visit entry again
the entry in the none-main language (=de) should be empty
Administers which might click the save button loose the previously saved data.
Expected behavior
We expect the site object to be returned correctly with all languages or to be reloaded after the change
Related work
Link to any related tickets or PRs here.
The text was updated successfully, but these errors were encountered: