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

Unexpected behavior with the field of type ‘upload’ and the ‘relationTo’ collection after editing it in the popup #8837

Closed
ivan-kardash opened this issue Oct 23, 2024 · 2 comments · Fixed by #9034
Assignees

Comments

@ivan-kardash
Copy link

ivan-kardash commented Oct 23, 2024

Describe the Bug

Any changes inside edit popup for the field with type ‘upload’ and the ‘relationTo’ collection do nothing in context of field, it has affect only to collection.

Link to the code that reproduces this issue

Fork payload v2: https://github.com/ivan-kardash/payload/tree/edit-media-popup-issue
Repository payload v3: https://github.com/ivan-kardash/payload-edit-media-issue
Video of reproducing payload v2: https://github.com/user-attachments/assets/7eb9f2c6-92f9-43b6-b16f-8d06ebe62512
Video of reproducing payload v3: https://github.com/user-attachments/assets/d54fbe35-c0b2-4e5b-a1df-539c6e08a842

Reproduction Steps

  1. Press the edit icon on the field with a schema like this: { ..., type: 'upload', relationTo: 'media' }
  2. Press the button with three dots in the popup.
  3. Press ‘Create New’ or ‘Delete’.

Current behavior:

  • The media collection is updated.
  • The field is not updated.

Expected behavior:

  • The field is updated.
  • The media collection is updated.

Which area(s) are affected? (Select all that apply)

plugin: cloud-storage, area: ui

Environment Info

payload: "3.0.0-beta.117"
@payloadcms/db-postgres: "3.0.0-beta.117"
@payloadcms/next: "3.0.0-beta.117"
@payloadcms/richtext-lexical: "3.0.0-beta.117"
@payloadcms/storage-s3: "3.0.0-beta.117"
@payloadcms/translations: "3.0.0-beta.117"
@payloadcms/ui: "3.0.0-beta.117"
react: "19.0.0-rc-65a56d0e-20241020"
next: "15.0.0"
node: "v22.4.1"

@ivan-kardash ivan-kardash added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 23, 2024
@ivan-kardash ivan-kardash changed the title Unexpected behavior in the edit popup of the field with type ‘upload’ and the ‘relationTo’ collection. Unexpected behavior with the field of type ‘upload’ and the ‘relationTo’ collection after editing it in the popup Oct 23, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 28, 2024
@jmikrut jmikrut closed this as completed in 2175e5c Nov 5, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

🚀 This is included in version v3.0.0-beta.125

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants