It is better to test before commiting ...

This commit is contained in:
2010-10-30 21:00:18 +02:00
parent 521596abd5
commit 7af9f1d9c2
2 changed files with 9 additions and 10 deletions

View File

@@ -1308,12 +1308,16 @@ std::vector<Operation>* Database::Search(User* user, wxString* description, wxDa
req += wxT("')");
}
if (firstCond) req += wxT(" AND ") ; else firstCond = true;
if (Fix == FIX_OP)
req += wxT(" AND fix_cost='1'");
{
if (firstCond) req += wxT(" AND ") ; else firstCond = true;
req += wxT(" fix_cost='1'");
}
else if (Fix == NON_FIX_OP)
req += wxT(" AND fix_cost='0'");
{
if (firstCond) req += wxT(" AND ") ; else firstCond = true;
req += wxT(" fix_cost='0'");
}
if (firstCond) req += wxT(" AND ") ; else firstCond = true;