From e0ca16cfd2da6678d1251c1bcd464431ac26a825 Mon Sep 17 00:00:00 2001 From: wotnak Date: Mon, 23 Oct 2023 15:58:48 +0200 Subject: [PATCH] Add post update hook to install the new quick_form entity type on existing farmOS installations #738 --- CHANGELOG.md | 1 + modules/core/quick/farm_quick.post_update.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/core/quick/farm_quick.post_update.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 01fe381e8..9470bc2eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - [Fix planting quick form creating empty quantities #737](https://github.com/farmOS/farmOS/pull/737) +- [Add post update hook to install the new quick_form entity type on existing farmOS installations #738](https://github.com/farmOS/farmOS/pull/738) ## [2.2.1] 2023-10-09 diff --git a/modules/core/quick/farm_quick.post_update.php b/modules/core/quick/farm_quick.post_update.php new file mode 100644 index 000000000..0023e64a2 --- /dev/null +++ b/modules/core/quick/farm_quick.post_update.php @@ -0,0 +1,15 @@ +installEntityType( + \Drupal::entityTypeManager()->getDefinition('quick_form') + ); +}