WordPress.org

Plugin Directory

Changeset 611082


Ignore:
Timestamp:
10/11/12 19:47:41 (19 months ago)
Author:
mordauk
Message:

Uploading minor fix

Location:
easy-digital-downloads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-digital-downloads/tags/1.3/includes/admin/reporting/graphing.php

    r611052 r611082  
    212212    $display = $dates['range'] == 'other' ? '' : 'style="display:none;"'; 
    213213 
     214    $view = isset( $_GET['view'] ) ? $_GET['view'] : 'earnings'; 
     215 
    214216    ?> 
    215217    <form id="edd-garphs-filter" method="get"> 
     
    219221                <input type="hidden" name="post_type" value="download"/> 
    220222                <input type="hidden" name="page" value="edd-reports"/> 
    221                 <input type="hidden" name="view" value="earnings"/> 
     223                <input type="hidden" name="view" value="<?php echo $view; ?>"/> 
    222224 
    223225                <select id="edd-graphs-date-options" name="range"> 
     
    395397    $dates = edd_get_report_dates(); 
    396398 
    397     wp_redirect( add_query_arg( $dates, admin_url( 'edit.php?post_type=download&page=edd-reports&view=earnings' ) ) ); exit; 
     399    $view = isset( $_GET['view'] ) ? $_GET['view'] : 'earnings'; 
     400 
     401    wp_redirect( add_query_arg( $dates, admin_url( 'edit.php?post_type=download&page=edd-reports&view=' . $view ) ) ); exit; 
    398402} 
    399403add_action( 'edd_filter_reports', 'edd_parse_report_dates' ); 
  • easy-digital-downloads/trunk/includes/admin/reporting/graphing.php

    r611052 r611082  
    212212    $display = $dates['range'] == 'other' ? '' : 'style="display:none;"'; 
    213213 
     214    $view = isset( $_GET['view'] ) ? $_GET['view'] : 'earnings'; 
     215 
    214216    ?> 
    215217    <form id="edd-garphs-filter" method="get"> 
     
    219221                <input type="hidden" name="post_type" value="download"/> 
    220222                <input type="hidden" name="page" value="edd-reports"/> 
    221                 <input type="hidden" name="view" value="earnings"/> 
     223                <input type="hidden" name="view" value="<?php echo $view; ?>"/> 
    222224 
    223225                <select id="edd-graphs-date-options" name="range"> 
     
    395397    $dates = edd_get_report_dates(); 
    396398 
    397     wp_redirect( add_query_arg( $dates, admin_url( 'edit.php?post_type=download&page=edd-reports&view=earnings' ) ) ); exit; 
     399    $view = isset( $_GET['view'] ) ? $_GET['view'] : 'earnings'; 
     400 
     401    wp_redirect( add_query_arg( $dates, admin_url( 'edit.php?post_type=download&page=edd-reports&view=' . $view ) ) ); exit; 
    398402} 
    399403add_action( 'edd_filter_reports', 'edd_parse_report_dates' ); 
Note: See TracChangeset for help on using the changeset viewer.