fatal error when batch searching by multiple financial types
When searching for contributions to add to a batch, until recently there was a core bug dev/core#532 (closed) that caused an error if you searched for multiple financial types in the batch search.
While this is fixed in core, a very similar problem occurs when this extension is installed. The code isn't commented, so I'm not sure what the intended effect is, but here is the backtrace that occurs when you attempt the search:
backTrace
#0 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Core/Error.php(377): CRM_Core_Error::backtrace()
#1 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Utils/Type.php(380): CRM_Core_Error::fatal("1078,1481 is not of the type Int")
#2 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contact/BAO/Query.php(5730): CRM_Utils_Type::escape("1078,1481", "Int")
#3 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contribute/BAO/Query.php(282): CRM_Contact_BAO_Query::buildClause("civicrm_contribution.financial_type_id", "=", "1078,1481", "Int")
#4 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contribute/BAO/Query.php(137): CRM_Contribute_BAO_Query::whereClauseSingle((Array:5), Object(CRM_Contact_BAO_Query))
#5 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Core/Component.php(299): CRM_Contribute_BAO_Query::where(Object(CRM_Contact_BAO_Query))
#6 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contact/BAO/Query.php(2047): CRM_Core_Component::alterQuery(Object(CRM_Contact_BAO_Query), "where")
#7 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contact/BAO/Query.php(531): CRM_Contact_BAO_Query->whereClause(NULL)
#8 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Contact/BAO/Query.php(491): CRM_Contact_BAO_Query->initialize(NULL)
#9 /var/www/example.org/htdocs/web/sites/all/civicrm/extensions/biz.jmaconsulting.grantprograms/CRM/Grantprograms/Query.php(218): CRM_Contact_BAO_Query->__construct((Array:1), (Array:40), (Array:22), FALSE, FALSE, 2)
#10 /var/www/example.org/htdocs/web/sites/all/civicrm/extensions/biz.jmaconsulting.grantprograms/CRM/Grantprograms/AJAX.php(82): CRM_Grantprograms_Query::getBatchFinancialItems("1", (Array:16), "1", (Array:66))
#11 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(275): CRM_Grantprograms_AJAX::getFinancialTransactionsList()
#12 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:12))
#13 /var/www/example.org/htdocs/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:2))
#14 /var/www/example.org/htdocs/web/modules/civicrm/src/Civicrm.php(85): CRM_Core_Invoke::invoke((Array:2))
#15 /var/www/example.org/htdocs/web/modules/civicrm/src/Controller/CivicrmController.php(75): Drupal\civicrm\Civicrm->invoke((Array:2))
#16 [internal function](): Drupal\civicrm\Controller\CivicrmController->main((Array:2), "getfinancialtransaction")
#17 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array((Array:2), (Array:2))
#18 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#20 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext((Array:2), (Array:2))
#21 /var/www/example.org/htdocs/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /var/www/example.org/htdocs/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#24 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#25 /var/www/example.org/htdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#26 /var/www/example.org/htdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#27 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#28 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#29 /var/www/example.org/htdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#30 /var/www/example.org/htdocs/web/core/lib/Drupal/Core/DrupalKernel.php(669): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, TRUE)
#31 /var/www/example.org/htdocs/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#32 {main}
Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
1078,1481 is not of the type Int