File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11# Release Notes for Craft CMS 5
22
3+ ## Unreleased
4+
5+ - Fixed a bug where nested element cards weren’t showing validation errors. ([ #18690 ] ( https://github.com/craftcms/cms/pull/18690 ) )
6+
37## 5.9.19 - 2026-04-07
48
59- Most classes can now be instantiated via the ` create() ` Twig function. ([ #18376 ] ( https://github.com/craftcms/cms/discussions/18376 ) )
Original file line number Diff line number Diff line change @@ -2190,10 +2190,12 @@ public function actionApplyDraft(): ?Response
21902190 // save the draft anyway, so we don’t lose the latest changes
21912191 // (see https://github.com/craftcms/cms/issues/18657)
21922192 $ errors = $ element ->getErrors ();
2193+ $ invalidNestedElementIds = $ element ->getInvalidNestedElementIds ();
21932194 $ element ->setScenario (Element::SCENARIO_ESSENTIALS );
21942195 $ elementsService ->saveElement ($ element , saveContent: $ saveContent );
21952196 $ element ->clearErrors ();
21962197 $ element ->addErrors ($ errors );
2198+ $ element ->addInvalidNestedElementIds ($ invalidNestedElementIds );
21972199
21982200 return $ this ->_asAppyDraftFailure ($ element );
21992201 }
You can’t perform that action at this time.
0 commit comments