- π΅π±Poland alorenc Wolsztyn, π΅π±
I used form alter to copy ajax settings to choice field.
function hook_form_alte(array &$form, FormStateInterface $form_state, string $form_id): void {
if (str_contains($form_id, 'poll_view_form') && isset($form['actions']['vote'])) {
$form['choice']['#ajax'] = $form['actions']['vote']['#ajax'];
$form['choice']['#ajax']['trigger_as'] = ['name' => 'vote'];
}
} - Issue was unassigned.
- π§πͺBelgium tim-diels Belgium π§πͺ
Patch wil need work to proper use once for Drupal > 9.2 and 10.
- First commit to issue fork.
- Assigned to BramDriesen
- π§πͺBelgium BramDriesen Belgium π§πͺ
Running into this at the moment on D10 so will update the JS deprecation.
- last update
9 months ago 28 pass - π§πͺBelgium BramDriesen Belgium π§πͺ
Only some tests are missing now.
Adding credit for yannick-bloemen since he ported the JS code for me.
- last update
9 months ago 28 pass - last update
9 months ago 28 pass - last update
9 months ago 27 pass, 2 fail - last update
9 months ago 27 pass, 1 fail - last update
9 months ago 29 pass - Status changed to Needs review
9 months ago 1:31pm 16 February 2024 - Issue was unassigned.
- π§πͺBelgium BramDriesen Belgium π§πͺ
Improved the tests (which took me longer as it should π )
- Status changed to RTBC
9 months ago 10:44am 9 March 2024 - Status changed to Needs work
9 months ago 2:46pm 9 March 2024 - π§πͺBelgium BramDriesen Belgium π§πͺ
There is a test failure after the rebase
- Status changed to Needs review
9 months ago 3:01pm 9 March 2024 - Status changed to Needs work
9 months ago 3:50pm 9 March 2024 - π§πͺBelgium BramDriesen Belgium π§πͺ
Still a JS failure. I assume itβs because of the field ID changes of another issue.
- Status changed to Needs review
9 months ago 7:43pm 9 March 2024 -
BramDriesen β
committed 2b2dd7f5 on 2.0.x
Issue #2985354 by BramDriesen, Dom., ivnish, Yannick Bloemen: Add option...
-
BramDriesen β
committed 2b2dd7f5 on 2.0.x
- Status changed to Fixed
9 months ago 8:57pm 9 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.