A bug with the use of db_query() breaks the module for Webform when no sid is given. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | fillpdf_webform_query-D6.patch | 879 bytes | liam morland |
| #3 | fillpdf_webform_query.patch | 894 bytes | liam morland |
| fillpdf_webform_query.patch | 894 bytes | liam morland |
Comments
Comment #1
wizonesolutionsLet's make the comment:
User did not specify submission ID, meaning they want most recent.The array keys should be :nid and :uid, just like the placeholders in the query.
Can we use (int) instead of
intval()? Cleaner and does same thing.Comment #2
liam morlandIt works with or without the colon in the array keys. Since placeholders always start with colon, it seems redundant to include them. The Drupal Coding Standards don't seem to provide a standard. I'm happy to go with whatever you prefer.
Fine with me.
Comment #3
liam morlandUpdated patch with your changes included. I note that the colons in the placeholders are there in core when this function is called.
Comment #4
wizonesolutionsI'm happy with this. Committed.
Does this need backport to 6.x?
Comment #5
liam morlandD6 version attached.
Comment #6
wizonesolutionsYou sure these query placeholders work in 6?
Comment #7
liam morlandNo; I don't know if they work or not. I don't have a D6 site.
Comment #8
alexborsody commentedI will test this and if it works commit it
Comment #12
wizonesolutionsNone of the D6 maintainers seem to be active, and this is more than a year old; closing.