Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch site object in cms has siteobject with defaultProjection in response #56

Open
floriangantner opened this issue Nov 7, 2023 · 0 comments · May be fixed by #57
Open

patch site object in cms has siteobject with defaultProjection in response #56

floriangantner opened this issue Nov 7, 2023 · 0 comments · May be fixed by #57
Labels

Comments

@floriangantner
Copy link

Describe the bug
The site object is usually returned in allLanguages Projection.

const searchParams: RequestParam[] = [new RequestParam('projection', 'allLanguages')];

Using the cms metadata component to edit the site object returns some patch(ed) Object with the default projection.

To Reproduce
Steps to reproduce the behavior:

  1. define and configure some cms in two languages (e.g. en,de)

  2. Edit both of the entries and save.
    Screenshot 2023-11-07 at 11-36-17 FIS Universität Bamberg Edit CMS Metadata

  3. You are returned to the dropdown of selected cms metadata.
    Screenshot 2023-11-07 at 11-36-27 FIS Universität Bamberg Edit CMS Metadata

  4. visit entry again

  5. the entry in the none-main language (=de) should be empty
    Screenshot 2023-11-07 at 11-36-33 FIS Universität Bamberg Edit CMS Metadata

  6. 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.

@floriangantner 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 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
floriangantner added a commit to uniba-ub/dspace-angular that referenced this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant