There was a recent change to the submission table where the left-hand column now shows the serial number rather than the submission id. That's a good change, but it broke webform_civicrm's theme tweaks. To take some of the voodoo out of altering that table, here is a simple patch to provide sid and serial numbers for each row, making it available to both php hooks and javascript on the client-side.
| Comment | File | Size | Author |
|---|---|---|---|
| submission_table.patch | 650 bytes | colemanw |
Comments
Comment #1
colemanw commentedComment #2
danchadwick commentedThese reports are slated to be converted to views, which will re-break your theme. I'd suggest effort be put into that rather than invent more API, no?
Comment #3
colemanw commentedIn which version of webform will they be converted to views? My patch is for 4.x, not really thinking ahead to 5.x or D8, I suppose I'll cross those bridges when we get to them.
Comment #4
danchadwick commentedI'm not sure which version will have views. Patches welcome. ;)
Comment #5
colemanw commentedOk seems like "won't fix" is a reasonable answer for this one. I was able to hack around the problem and the converison to views will re-break it whether this patch goes into webform or not.
Comment #6
danchadwick commentedIf you write a patch converting the Results page to use Views, you could control when your hack breaks. Just sayin'. :)