diff --git a/CHANGELOG.md b/CHANGELOG.md index bd8c39641..5525f4b13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- [Leaving empty the Parent field in the Assign Parent For This Asset form leads to unexpected error #683](https://github.com/farmOS/farmOS/issues/683) + ## [2.1.1] 2023-05-23 ### Fixed diff --git a/modules/core/parent/src/Form/AssetParentActionForm.php b/modules/core/parent/src/Form/AssetParentActionForm.php index 98145ef68..0629a91a5 100644 --- a/modules/core/parent/src/Form/AssetParentActionForm.php +++ b/modules/core/parent/src/Form/AssetParentActionForm.php @@ -181,6 +181,7 @@ class AssetParentActionForm extends ConfirmFormBase { '#tags' => TRUE, '#validate_reference' => FALSE, '#maxlength' => 1024, + '#required' => TRUE, ]; $form['operation'] = [