diff --git a/cg/cg5300.cpp b/cg/cg5300.cpp index c63c9364c..c6575f606 100755 --- a/cg/cg5300.cpp +++ b/cg/cg5300.cpp @@ -281,7 +281,7 @@ int CG5300_App::rewrite(const TMask& m) lia.put("CODTAB", year); was = lia.read() == NOERR; if (!was) lia.zero(); - m.autosave(); + m.autosave(get_relation()); if (err == NOERR) err = (was ? lia.rewrite() : lia.write()); if (err == NOERR && year == _yearliq) { @@ -369,4 +369,4 @@ int cg5300(int argc, char* argv[]) - \ No newline at end of file +