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

Editing a Hosted Resource deletes the links and sets it back to Not Hosted #189

Open
1 task done
r-southworth opened this issue Nov 26, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@r-southworth
Copy link
Contributor

Describe the bug
Editing a Hosted Resource deletes the links and sets it back to Not Hosted because edit mode defaults to hosted = false

To Reproduce
Steps to reproduce the behavior:

  1. Go to Creator Profile (as Admin)
  2. Click on a Hosted Resource
  3. Open full item details
  4. Click Edit
  5. Hosted is checked no and when you check yes your links are not there.

Expected behavior
If resource is hosted box for yes should still be checked and links should still be there

Proposed Solution
Update CreateEditPost to read values in the resource_links as needed and set isHosted appropriately

  • I am willing to submit a pull request for this issue.
@r-southworth r-southworth added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant