ajax batchSave() method should be static, php8 compatibility
authorcyu <cyu@giantrabbit.com>
Tue, 22 Nov 2022 19:42:33 +0000 (11:42 -0800)
committercyu <cyu@giantrabbit.com>
Tue, 22 Nov 2022 19:42:33 +0000 (11:42 -0800)
CRM/Batch/Page/AJAX.php

index 57f0bcd1f38e99d1040c57ceebd7df8e88acc7de..e559b191e37a457dc6a546806d9caab3f58582ad 100644 (file)
@@ -23,7 +23,7 @@ class CRM_Batch_Page_AJAX {
   /**
    * Save record.
    */
-  public function batchSave() {
+  public static function batchSave() {
     // save the entered information in 'data' column
     $batchId = CRM_Utils_Type::escape($_POST['batch_id'], 'Positive');