Year/month changement ok

This commit is contained in:
2010-06-22 20:46:30 +02:00
parent e176e2f235
commit 391aef379b
4 changed files with 128 additions and 29 deletions

View File

@@ -252,7 +252,9 @@ void Database::LoadYear(User* user, int year)
{
req += _("', '") + it->id ;
}
req += _("') ORDER BY fix_cost DESC, year,month,day ASC");
req += _("')");
req += _(" AND year='") + wxString::Format(_("%d"), year) + _("'");
req += _(" ORDER BY fix_cost DESC, year,month,day ASC");
EXECUTE_SQL_QUERY(req, set, );