Closed (fixed)
Project:
userreview
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2006 at 11:56 UTC
Updated:
13 Oct 2006 at 11:45 UTC
Great module!
One thing I have noticed is that when a userreview is set to 'unpublished' (status=0 in node table) it is still displayed with the relevant node. This means that the moderation of userreviews does not work.
My guess is that the problem is that the view is loading userreviews which should remain hidden.
Thanks!
Comments
Comment #1
dado commentedExcellent point. Looks like we need to replace line 927, this
with this
Will commit to CVS tonight
Comment #2
9802008 commentedThanks! I pasted the code in and created some new reviews. However reviews are still showing up attached to nodes. If I try to access the review directly, get an access denied message.
Comment #3
dado commentedThanks for testing this. I think you need to refresh the views module's cache. You can do this by going to admin/modules and click submit. Could you report back again whether it now works?
Comment #4
dado commentedI committed this to CVS, both versions (head & 4.7)
Comment #5
9802008 commentedHi Dado
Thanks it works! The code does however still display the 'user reviews' drop down which is now empty. I have just added some text to say 'review cannot be displayed as it is currently being moderated'.
Votes for reviews which have not yet been approved are however still counted towards the total vote.
Cheers
James
Comment #6
dado commentedcan we call this a feature?
Comment #7
9802008 commentedyes :-)
Comment #8
(not verified) commented