Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
check for existing $cid in components when going to dave data.
In some cases need to create, let's call them 'dummy-fields'. Them are of course not in components, so to prevent the annoying notice messages (undefined index) need to check if the $cid exists in components first.
please, review patch
thx, dropfen
Comment | File | Size | Author |
---|---|---|---|
#1 | check_for_existing_cid_in_webform_submission_data-2008000-1.patch | 611 bytes | dropfen |
Comments
Comment #1
dropfen CreditAttribution: dropfen commentedthis simple patch
Comment #2
quicksketchSeems reasonable to me, though I don't particularly encourage adding pseudo-fields.
I adjusted the patch slightly since this line is missing a ">" character that would cause a PHP error:
$node-webform
changed to$node->webform
.Comment #3
dropfen CreditAttribution: dropfen commentedoh my fault, the patch was made with vim in an untestable env. :) Sorry.
thx, for reviewing.
by the way, I need the pseudo field, which is a clone (with little modification) of the mail field, to check the input.