diff --git a/ba/ba3200.cpp b/ba/ba3200.cpp index a746293ce..c9a2ff90b 100755 --- a/ba/ba3200.cpp +++ b/ba/ba3200.cpp @@ -52,6 +52,7 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const TRectype from(cursor.curr()); from.zero(); TRectype to(from); bool key1_full = false; + TString80 val; for (int i = _mask->fields() - 1; i >= 0; i--) { const TMask_field& f = _mask->fld(i); @@ -59,7 +60,10 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const if (ref != NULL && ref->name() == "CODTAB" && !f.empty()) { const bool is_final = f.in_group(2); - ref->write(f.get(), is_final ? to : from); + val = f.get(); + if (f.is_kind_of(CLASS_DATE_FIELD)) + val = TDate(val).string(full, '\0', full, full, amg_date); + ref->write(val, is_final ? to : from); key1_full = true; } }