Closed (works as designed)
Project:
Pollfield
Version:
6.x-1.6-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2009 at 12:15 UTC
Updated:
22 May 2010 at 13:45 UTC
I'm having an issue where the form for Pollfield is bringing up an error when I validate my site. I've scoured the pollfield.module file but can't see where I can correct this myself (I'm not a programmer, so sorry if this is obvious).
The problem is the line:
<form action="/pollfield/vote" accept-charset="UTF-8" method="post" id="">
The problem appears to be that the ID is empty. Validation gives me the error: "syntax of attribute value does not conform to declared value"
Any help with this would be much appreciated. And thanks for this module - it was a relief to find it!
Comments
Comment #1
mario_prkos commentedIt is not surprise that you didn't find html because this is done by Form API of Drupal. This html is not what pollfield directly generating so I can not fix it directly but I can check out is this can be done somehow through form API. Keep in touch I will see what I can do.
Comment #2
sparkells commentedThanks for that. It's not a big deal at all - just one of those 'nice to fix' things.
Comment #3
mario_prkos commentedThis is quick and dirty solution. Just put this line of code in the end of function
theme_pollfield_formatter_defaultjust beforereturn $out$out=str_replace('id=""'," ",$out);This will basically delete empty id form output generated by pollfield. It will not touch output of other modules. This id is not used by pollfield and it is save to remove it. If you really need this solved you can use this solution or you can wait that this is solved on more general and more elegant way.
Thanks for pointed it out.
Comment #4
ar-jan commentedThanks for the workaround. I assume this should then be seen as 'by design'. And subscribing - I didn't find a core issue on this problem. Is there?