Bug in previous commit
This commit is contained in:
parent
ab176b9fc3
commit
142837b59e
|
@ -1443,7 +1443,7 @@ std::vector<Operation>* Database::Search(User* user, wxString* description, wxDa
|
||||||
req += wxT(", month ") + user->_preferences[wxT("operation_order")] ;
|
req += wxT(", month ") + user->_preferences[wxT("operation_order")] ;
|
||||||
req += wxT(", day ") + 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);
|
EXECUTE_SQL_QUERY(req, set, res);
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
|
||||||
|
|
||||||
for(i=0; i<user->GetCategoriesNumber(); i++)
|
for(i=0; i<user->GetCategoriesNumber(); i++)
|
||||||
if (_category->IsChecked(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(0)) ? FIX_OP : 0;
|
||||||
types |= (_optype->IsChecked(1)) ? NON_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++)
|
for(i=0; i<user->GetAccountsNumber(); i++)
|
||||||
if (_account->IsChecked(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)
|
if (_operations)
|
||||||
delete _operations;
|
delete _operations;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user