Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the Analysis report, questions are numbered according to the position of a field in the questionnaire. Even though headings and other such fields are not displayed they are still assigned a number. This results in the questions not being numbered contiguously in the analysis report, e.g. 4,5,6,10,11,12,...
I attach a patch that will cause the questions to be numbered contiguously starting at 1. It just involves moving one line of code.
Comment | File | Size | Author |
---|---|---|---|
#1 | webforms_5.x-2.9_contiguous_numbering_in_analysis.patch | 691 bytes | kevin.mcnamee@mailbox.org |
Comments
Comment #1
kevin.mcnamee@mailbox.org CreditAttribution: kevin.mcnamee@mailbox.org commentedComment #2
quicksketchThanks, looks valid to me. We'll need to port this to the Drupal 6 versions as well.
Comment #3
quicksketchTurns out this problem does not affect 3.x, which now passes all the information to a separate theme function before rendering. Patch applies fine to both 2.x versions. Committed to D5/6 versions in that branch.