Closed (fixed)
Project:
userreview
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2006 at 19:10 UTC
Updated:
28 Jul 2006 at 21:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
neclimdulOk, I had a sneaking suspicion that this wasn't me being stupid. After some heavy digging and fighting with fapi I found a little bug. Its hidden in 2 form_alters so its a little bit tricky to find.
1) node.module will remove #submit from the node form if previews are required.
2) userreview always removes #preview from the userreview node form.
This leaves someone that requires previews with no way to submit a review. I've attached a rough patch that I used to work around it. It probably isn't 100% but it seems to be working on my site. It doesn't remove the preview buttom when node is removing the submit button and it makes sure the review area isn't collapsed if it's a preview(it disapearing would probably confuse most users). I'm open for feedback and ideas.
Comment #2
dado commentedneclimdul,
nice work & nice patch! i committed to HEAD & 4.7 version of userreview.
please report if all looks well or not.
thanks
dado
Comment #3
neclimdulSeems to be working well.
Comment #4
dado commentedthanks