-
Notifications
You must be signed in to change notification settings - Fork 21
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
SQL error on unpublish #20
Comments
Removed the erroneous closing parentheses, thanks for the report. |
Better now, but when publishing/unpublishing one item in a category, ALL items gets published/unpublished. And, unpublish have no affect on the site. Unpublished items gets displayed. |
I went back and reviewed the parent publish function and the correct fix On 9/19/11 4:44 PM, "stitot"
|
Yes, that fixed the DB update part, but still unpublished items gets displayed on the site. |
@AmyStephen, is it intentional to have the default query if the state filter isn't active to pull published and unpublished items? Seems to me the default should be published only for unauthenticated users and all items if you have front end management capability. |
Here's a diff with how I handle the filtering in the front end with my podcast component. Basically, if you don't have edit or edit state permissions, you only see published items. I also have a clause that handles the publish_up time so only published articles that aren't set for the future aren't displayed. |
When trying to unpublish an item I get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND id=2' at line 3 SQL=UPDATE
joomla_members
SETstate
= 0 WHEREchecked_out
= 0 ORchecked_out
= 42) AND id=2Unpublishing/publishing categories work fine.
The text was updated successfully, but these errors were encountered: