Hi!

when I created blog, and don't want a poll for it (I fill no pollfield fields), there is still radiobutton for first (empty) question
It looks really bad and it is missunderstood for users.
Screenshot included.

thanks for help with it
Igor
somvprahe.sk

Comments

jaydub’s picture

Version: 5.x-1.x-dev » 5.x-1.6
Status: Active » Needs review
StatusFileSize
new1.21 KB

I ran into this issue as well. My use case is that I am importing forum posts from phpbb which has polls inside forum posts. These polls are optional. I want to maintain this functionality.

By default pollfield.module stores a pollfield and registers a single poll choice even if all poll choices are empty strings. That doesn't seem right to me and results in a lot of useless rows in {pollfields} for polls that were never created. Furthermore, since these unintentional polls are by default active with an unlimited runtime, they will be part of every cron run and show up in /pollfields as active polls.

Karen, I think my patch is a less than elegant approach to this but it does get the job done for now. Any thoughts?

RobertOak’s picture

worked for me but you need to have the fieldset label and group label hidden in the display fields section, it seems. Thank you for writing this patch.

bryan kennedy’s picture

Status: Needs review » Closed (won't fix)

We are no longer supporting the Drupal 5 version of this module and there hasn't been any activity on this issue for several years, so I am closing as won't fix.