fix typo resulting in fatal error
authorDemeritCowboy <demeritcowboy@hotmail.com>
Fri, 4 Oct 2019 22:00:08 +0000 (18:00 -0400)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 5 Oct 2019 13:18:39 +0000 (23:18 +1000)
CRM/Export/BAO/ExportProcessor.php

index b46e41e283fdb27a2c3fb800a285e0743912c781..7d311aa7df9c74f0a182347ddfc1091085fb18df 100644 (file)
@@ -173,7 +173,7 @@ class CRM_Export_BAO_ExportProcessor {
       $fields = ['is_deceased', 'do_not_mail', 'street_address', 'supplemental_address_1'];
       foreach ($fields as $index => $field) {
         if (!empty($this->getReturnProperties()[$field])) {
-          unset($field[$index]);
+          unset($fields[$index]);
         }
       }
       $this->additionalFieldsForPostalExport = array_fill_keys($fields, 1);