Patch level : 12.0 nopatch

Files correlati     :
Commento        :

Implementazione invio regolarizzazioni al 07/11/2021
This commit is contained in:
Alessandro Bonazzi 2021-11-09 07:39:49 +01:00
parent 5e3ae2faaa
commit e0405077df

View File

@ -2256,6 +2256,7 @@ void TReport::destroy()
{
_sections.destroy();
_description.cut(0);
_default_shown_sections.destroy();
set_recordset(nullptr);
}
@ -2350,6 +2351,14 @@ bool TReport::load(const char* fname)
}
}
}
FOR_EACH_ASSOC_OBJECT(_sections, os, sec_key, sec_item)
{
TReport_section * sect = (TReport_section *)sec_item;
const bool section_shown = sect->shown();
if (section_shown)
_default_shown_sections.add(sec_key);
}
return ok;
}