Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Lets say we allow pollfields on our forum topics. Now every time someone creates a forum topic, pollfield writes a record to the database containing mostly blank or default value fields. It should not be writing anything to the database unless the pollfield form has a question filled in at least.
Comments
Comment #1
mr.j CreditAttribution: mr.j commentedI should have added that records are written to {pollfield} and {content_field_poll} - the 2nd would vary depending on your CCK setup.
Comment #2
bryan kennedy CreditAttribution: bryan kennedy commentedAssigning this to performance to help organize the issue queue. Glad you spelled this out mr.j
Comment #3
bryan kennedy CreditAttribution: bryan kennedy commentedClarifying the title a bit. The main issue here is that the pollfield code should check to see if there is any user input before doing ANY database calls. Right now it's writing empty fields or fields with " ".
I've made a bit of progress on eliminating some of these situations but haven't fully fixed it. This issue is related to some of problem here [1168408].
Comment #4
giorgio79 CreditAttribution: giorgio79 commented#1168408: Choices fields lost when editing a node with more than 2 pollfields :)