From 64ab815114145e0dc6be39ce1eae7302e91dd0f4 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Fri, 9 Jun 2023 08:21:54 -0400 Subject: [PATCH] Leaving empty the Parent field in the Assign Parent For This Asset form leads to unexpected error #683 --- CHANGELOG.md | 4 ++++ modules/core/parent/src/Form/AssetParentActionForm.php | 1 + 2 files changed, 5 insertions(+) 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'] = [