Making WordPress.org


Ignore:
Timestamp:
06/06/2016 08:47:05 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Correct export values for Reason and Currency fields.

Previously the currency was being put in the reason field, and the reason wasn't being exported at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php

    r3303 r3304  
    727727        $column_headings = array(
    728728                'WordCamp', 'ID', 'Title', 'Status', 'Paid', 'Requested', 'Amount',
    729                 'Reason', 'Categories', 'Payment Method', 'Name',
     729                'Currency', 'Reason', 'Categories', 'Payment Method', 'Name',
    730730                'Check Payable To', 'URL',
    731731        );
    … …  
    795795                        $amount,
    796796                        $currency,
     797                        $reason,
    797798                        implode( ',', $categories ),
    798799                        get_post_meta( $post->ID, '_wcbrr_payment_method', true ),
    … …  
    833834         * are sorted.
    834835         */
    835         $empty_fields = array( 0, 3, 4, 7, 9, 10, 11, 12 );
     836        $empty_fields = array( 0, 3, 4, 7, 8, 10, 11, 12, 13 );
    836837        foreach ( $empty_fields as $index ) {
    837838                $row[ $index ] = '';
    … …  
    842843        $row[5] = $expense['_wcbrr_date'];
    843844        $row[6] = $expense['_wcbrr_amount'];
    844         $row[8] = $expense['_wcbrr_category'];
     845        $row[9] = $expense['_wcbrr_category'];
    845846
    846847        return $row;
Note: See TracChangeset for help on using the changeset viewer.