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

Markdown field with files doesn't work though HasOne relation #6383

Closed
kichetof opened this issue May 13, 2024 · 1 comment
Closed

Markdown field with files doesn't work though HasOne relation #6383

kichetof opened this issue May 13, 2024 · 1 comment
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Milestone

Comments

@kichetof
Copy link

  • Laravel Version: 11.7.0
  • Nova Version: 4.33.3
  • PHP Version: 8.3.7
  • Database Driver & Version: sqlite / mysql
  • Operating System and Version: macOS (herd, docker) / Linux docker
  • Browser type and version: Brave, Safarie
  • Reproduction Repository: https://github.com/kichetof/nova-markdown-relation-error

Description:

When you add a photo to a Markdown field, temporary record is created in nova_pending_field_attachments and when you save it, record is created in nova_field_attachments.

Bug: add a photo to a Markdown field though a HasOne relation, temporary record is created in nova_pending_field_attachments and when you save it, no record is created in nova_field_attachments and attachment will be deleted with PruneStaleAttachments.

Detailed steps to reproduce the issue on a fresh Nova installation:

Use my repo:

  1. Add a photo from Bibliography it works.
  2. Add a photo to Bibliography though User it doesn't work.

Thanks for your help!

@crynobone crynobone added the bug Verified bug by the Nova team label May 15, 2024
@crynobone crynobone added this to the 4.x milestone May 15, 2024
@crynobone crynobone added the fix incoming A fix is in review label May 21, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants