I have done in CiviCRM 5.16.4
After creating the data processor as above image then when i go to that menu
( civicrm/dataprocessor_search/contribution_test?reset=1 ) i am getting following error
Yep, I'm on CiviCRM 5.15 (on Drupal 7) and latest master (e8c3fd9) version of extension and have the same error.
@jaapjansma do you think it's something that CiviCRM 5.18 would fix?
This patch seems to fix it (this is an uneducated fix, I have not understood what it's supposed to be doing)
diff --git a/CRM/DataprocessorSearch/Form/Search.php b/CRM/DataprocessorSearch/Form/Search.phpindex a4ccf2f..9bf4f63 100644--- a/CRM/DataprocessorSearch/Form/Search.php+++ b/CRM/DataprocessorSearch/Form/Search.php@@ -9,6 +9,15 @@ use CRM_Dataprocessor_ExtensionUtil as E; class CRM_DataprocessorSearch_Form_Search extends CRM_DataprocessorSearch_Form_AbstractSearch {+ /**+ * Returns the name of the default Entity+ *+ * @return string+ */+ public function getDefaultEntity() {+ return 'Contact';+ }+ /** * Returns the url for view of the record action *
Sorry I am wrong. The contribution is not really needed. I wonder what would happen if you just return an empty string. Because basicly we dont know which entity the search is (if it is any).