AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
817 stars 313 forks source link

Fix re-render of layoutpages form if validation fails #2951

Closed tvdeyen closed 3 days ago

tvdeyen commented 3 days ago

What is this pull request for?

We need to re-render the layoutpages form instead of the page form. Therefore we need to introduce an update action in the layoutpages controller, otherwise it uses the pages controller update action which renders the full page form.

Checklist

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.00%. Comparing base (c25b9b1) to head (6ce2f64).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2951 +/- ## ======================================= Coverage 95.99% 96.00% ======================================= Files 232 232 Lines 6273 6282 +9 ======================================= + Hits 6022 6031 +9 Misses 251 251 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

alchemycms-bot commented 3 days ago

💚 All backports created successfully

Status Branch Result
✅ 7.0-stable
✅ 7.1-stable
✅ 7.2-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details