We cannot sort submissions on the output of a radio button field. When the table header is clicked to sort, the submission rows are sorted seemingly randomly on the "Yes" or "No" responses.
The field definition is:
housing:
'#type': radios
'#title': 'If you are accepted into the program, would you want to apply for housing arranged for by the program?'
'#description': 'If you select "No" it will be assumed that, if accepted, you will arrange for your own housing, as needed, and participate as a commuter.'
'#options': yes_no
'#required': true
There is an affiliated notice logged at the moment sorting is attempted:
Notice: Undefined index: element__housing in Drupal\webform\WebformSubmissionListBuilder->getEntityIds() (line 733 of /mnt/www/html/iasedu2dev/docroot/modules/contrib/webform/src/WebformSubmissionListBuilder.php) #0 /mnt/www/html/iasedu2dev/docroot/core/includes/bootstrap.inc(566): _drupal_error_handler_real(8, 'Undefined index...', '/mnt/www/html/i...', 733, Array) #1 /mnt/www/html/iasedu2dev/docroot/modules/contrib/webform/src/WebformSubmissionListBuilder.php(733): _drupal_error_handler(8, 'Undefined index...', '/mnt/www/html/i...', 733, Array) #2 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/Entity/EntityListBuilder.php(80): Drupal\webform\WebformSubmissionListBuilder->getEntityIds() #3 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/Entity/EntityListBuilder.php(228): Drupal\Core\Entity\EntityListBuilder->load() #4 /mnt/www/html/iasedu2dev/docroot/modules/contrib/webform/src/WebformSubmissionListBuilder.php(305): Drupal\Core\Entity\EntityListBuilder->render() #5 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(22): Drupal\webform\WebformSubmissionListBuilder->render() #6 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing('webform_submiss...') #7 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #8 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #9 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #11 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #12 /mnt/www/html/iasedu2dev/docroot/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #13 /mnt/www/html/iasedu2dev/docroot/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #14 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /mnt/www/html/iasedu2dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /mnt/www/html/iasedu2dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /mnt/www/html/iasedu2dev/docroot/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /mnt/www/html/iasedu2dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /mnt/www/html/iasedu2dev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #23 {main}.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform.webform.issue_2949403.yml | 3.41 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedI can't replicate this issue using the example placed in the attached webform
Comment #3
cilefen commentedCould you try positioning the column to the right of the operations column?
Comment #4
cilefen commentedThis is likely interference from a custom module.
Comment #5
cilefen commentedSorry to waste your time on this one!