Fix batch transaction export on D8/9
[civicrm-core.git] / CRM / Batch / BAO / Batch.php
index 3bb93f140b70980255282f987bf5c2a0d85476ec..1f420a0c57787e8db840b464b0c7390d2300284a 100644 (file)
@@ -450,8 +450,8 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
         'export' => [
           'name' => ts('Export'),
           'title' => ts('Export Batch'),
-          'url' => '#',
-          'extra' => 'rel="export"',
+          'url' => 'civicrm/financial/batch/export',
+          'qs' => 'reset=1&id=%%id%%&status=1',
         ],
         'reopen' => [
           'name' => ts('Re-open'),