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.
Follow-up to #2802485: SubmissionID as a counter for submissions for each form
Problem/Motivation
YamlFormSubmission::sid is not an accurate counter for tracking submissions.
Proposed resolution
Add serial column to YAML form submissions.
Remaining tasks
- Add serial column to yamlform_submission table.
- Add next_serial to YamlFormSettings Form.
- Add code to set serial to \Drupal\yamlform\YamlFormSubmissionStorage::doSave
- Update YamlFormSubmission::label() to use serial.
- Update Results Download to use serial.
- Update Submission List builder to show serial column as #.
- Add hidden SID to Submission List builder.
- Update export by range
- Write update hook.
User interface changes
Serial value will be displayed instead of submission id (sid).
API changes
None
Data model changes
Serial (serial) column will be added to yamlform_submission table.
Development Notes
- Branch Name: 2806911-add-serial-column-to-submissions
- Commit message: Issue #2806911: Add serial column to YAML form submissions
Comment | File | Size | Author |
---|---|---|---|
#9 | add_serial_column_to-2806911-9.patch | 24.06 KB | jrockowitz |
#7 | add_serial_column_to-2806911-6.patch | 22.81 KB | jrockowitz |
#4 | add_serial_column_to-2806911-4.patch | 14.95 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz commentedComment #4
jrockowitz CreditAttribution: jrockowitz commentedComment #7
jrockowitz CreditAttribution: jrockowitz commentedComment #9
jrockowitz CreditAttribution: jrockowitz commentedComment #11
jrockowitz CreditAttribution: jrockowitz commented