From 2cab61cb4ebae422bcdb8c8c9488770c22b2c362 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Fri, 16 Dec 2022 10:24:30 -0500 Subject: [PATCH] Fix 'cannot determine default entity' error on New Batch page --- CRM/Batch/Form/Batch.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Batch/Form/Batch.php b/CRM/Batch/Form/Batch.php index 3f4b34af52..2f53b43f6c 100644 --- a/CRM/Batch/Form/Batch.php +++ b/CRM/Batch/Form/Batch.php @@ -18,6 +18,13 @@ class CRM_Batch_Form_Batch extends CRM_Admin_Form { protected $submittableMoneyFields = ['total']; + /** + * Explicitly declare the entity api name. + */ + public function getDefaultEntity() { + return 'Batch'; + } + /** * PreProcess function. */ -- 2.25.1