Bug 743807 Wrong date value being used.

In get_filter_times, the start_date_today was being tested instead of
the end_date_today, corrected. Also corrected the default option for
end date to match start date.
This commit is contained in:
Robert Fewell 2015-02-03 13:55:10 +00:00 committed by Geert Janssens
parent ac63d3a1ae
commit 068fc3567d
2 changed files with 3 additions and 3 deletions

View File

@ -504,7 +504,7 @@ get_filter_times (CsvExportInfo *info)
}
else
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.start_date_today)))
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.end_date_today)))
info->csvd.end_time = gnc_time64_get_today_end();
else
info->csvd.end_time = gnc_time (NULL);

View File

@ -639,6 +639,7 @@ Select the type of Export required and the separator that will be used.
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">end_date_latest</property>
<signal name="clicked" handler="csv_export_end_date_cb" swapped="no"/>
</object>
<packing>
@ -659,7 +660,7 @@ Select the type of Export required and the separator that will be used.
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">end_date_choose</property>
<property name="group">end_date_latest</property>
<signal name="clicked" handler="csv_export_end_date_cb" swapped="no"/>
</object>
<packing>
@ -681,7 +682,6 @@ Select the type of Export required and the separator that will be used.
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">end_date_choose</property>
<signal name="clicked" handler="csv_export_end_date_cb" swapped="no"/>
</object>
<packing>