Bug in previous commit

This commit is contained in:
Grégory Soutadé 2011-02-10 20:04:33 +01:00
parent ab176b9fc3
commit 142837b59e
2 changed files with 3 additions and 3 deletions

View File

@ -1443,7 +1443,7 @@ std::vector<Operation>* Database::Search(User* user, wxString* description, wxDa
req += wxT(", month ") + user->_preferences[wxT("operation_order")] ;
req += wxT(", day ") + user->_preferences[wxT("operation_order")] ;
std::cout << req.mb_str() << "\n";
// std::cout << req.mb_str() << "\n";
EXECUTE_SQL_QUERY(req, set, res);

View File

@ -225,7 +225,7 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
for(i=0; i<user->GetCategoriesNumber(); i++)
if (_category->IsChecked(i))
categories.push_back((i) ? user->_categories[i].id : wxT("0"));
categories.push_back((i) ? user->_categories[i-1].id : wxT("0"));
types |= (_optype->IsChecked(0)) ? FIX_OP : 0;
types |= (_optype->IsChecked(1)) ? NON_FIX_OP : 0;
@ -234,7 +234,7 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
for(i=0; i<user->GetAccountsNumber(); i++)
if (_account->IsChecked(i))
accounts.push_back((i) ? user->_accounts[i].id : wxT("0"));
accounts.push_back((i) ? user->_accounts[i-1].id : wxT("0"));
if (_operations)
delete _operations;