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

Remove article from all issues when unpublished #498

Open
J16053 opened this issue Apr 10, 2019 · 0 comments
Open

Remove article from all issues when unpublished #498

J16053 opened this issue Apr 10, 2019 · 0 comments

Comments

@J16053
Copy link
Contributor

J16053 commented Apr 10, 2019

Expected Behavior

Kind of the opposite of #97, unpublishing an article should remove it from all the issues that it was published in so that it can no longer be accessed. Also related to #340.

Current Behavior

When an article is unpublished using the unpublish button, it stays in all the issues it was previously published in. If that article is then accessed, its Date value will be NULL.

image

Possible Solution

Check to see which issues the article is published in when unpublishing, and remove all the database entries for that article before unpublishing it.

Steps to Reproduce (for bugs)

  1. Select a published article in the admin interface.
  2. Click "Unpublish".
  3. On the main site, visit the issue that the article was previously published in: the article will still be there.
  4. Click on the link to the article, and everything about it will look the same, except where the date should be "Invalid date" takes its place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant