- 🇦🇺Australia acbramley
Added coverage for inline form errors, this fails without the disable_inline_form_errors line. Also fixed the expected message, added :void
The last submitted patch, 50: 2977785-50.patch, failed testing. View results →
- Assigned to sourabhjain
- Status changed to Needs work
over 1 year ago 6:06am 28 February 2023 - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:12am 28 February 2023 - Status changed to Needs work
over 1 year ago 8:45am 28 February 2023 - 🇳🇱Netherlands Lendude Amsterdam
The new tests got lost in #53, please add them back in
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
Add the Tests As Per #55 Suggestion. try To Fix failed test.
- Status changed to Needs review
over 1 year ago 9:36pm 28 February 2023 - 🇦🇺Australia acbramley
The correct fix is to not let ViewAjaxControllerTest return NULL for renderRoot. There was already a mock for
render
which isn't even called in that test, so we just replace that mock withrenderRoot
- Status changed to RTBC
over 1 year ago 2:39pm 2 March 2023 - 🇺🇸United States smustgrave
Confirmed the issue following the steps in the issue summary.
Using patch #57 I now get an error.
There are no users matching "asfsd".Changes look good.
- 🇺🇸United States smustgrave
Think I agree with @acbramley
If there's room for refactoring the standard of AJAX status messages maybe that should be a follow up?
The last submitted patch, 57: 2977785-57.patch, failed testing. View results →
- Status changed to Needs review
over 1 year ago 7:09am 20 March 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
ViewsFormBase is wrapped by
\Drupal\views_ui\Form\Ajax\ViewsFormBase::ajaxFormWrapper
as far as I can see, and that does the executeInRenderContext dance.Status messages is placeholdered so in Big pipe scenarios could require JS, additionally anyone could in theory alter #cache/#attached in a hook_preprocess_status_messages.
However looking
\Drupal\Core\Ajax\CommandWithAttachedAssetsTrait::getRenderedContent
it looks like if you pass in an array it will take care of getting the attached libraries and rendering, so can we just pass['#type' => 'status_messages']
as the content to the prepend command? Would simplify things a lot I think so it's worth a shot I think. The last submitted patch, 68: 2977785-68.patch, failed testing. View results →
- 🇦🇺Australia acbramley
Need to mock
getInfo
on the element manager now since way down the stack that is called with the new method of passing in an array. - Status changed to RTBC
over 1 year ago 2:49pm 21 March 2023 - 🇺🇸United States smustgrave
Retested following steps in issue summary.
Patch #70 still addresses the issue. - 🇳🇱Netherlands Lendude Amsterdam
I think we already have it when
pageTextContains
was changed topageTextContainsOnce
, basically what I was looking for was something that would fail if somebody removed$form['#disable_inline_form_errors'] = TRUE;
, and if the comment above that line is correct, that should do the trick.So this looks good to me, nice work all!
-
larowlan →
committed 3afc1fc4 on 10.0.x
Issue #2977785 by acbramley, ameymudras, mrinalini9, Hardik_Patel_12,...
-
larowlan →
committed 3afc1fc4 on 10.0.x
-
larowlan →
committed bb8f1aad on 10.1.x
Issue #2977785 by acbramley, ameymudras, mrinalini9, Hardik_Patel_12,...
-
larowlan →
committed bb8f1aad on 10.1.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Committed to 10.1.x and backported to 10.0.x
Queued a test run for 9.5.x, will backport there if it passes.
-
larowlan →
committed 5a2ddf59 on 9.5.x
Issue #2977785 by acbramley, ameymudras, mrinalini9, Hardik_Patel_12,...
-
larowlan →
committed 5a2ddf59 on 9.5.x
- Status changed to Fixed
over 1 year ago 11:09pm 29 March 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
9.5 run came back green, backported to 9.5.x - marking as fixed 💪
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
9 months ago 3:25pm 1 March 2024 - 🇺🇦Ukraine Kostiantyn
Is there a patch available for drupal 8.9? I can't seem to find one. The one for version 9 isn't working for me.