From: Elena Mamontova Date: Thu, 17 Nov 2016 08:22:55 +0000 (+0200) Subject: Ticket. The checking if(!data.tariffConf.changePolicyTimeout.emplty) X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/c3a5bb488a4b62f7d4c273c410e23317e775f9c9?hp=ccdebbb822ee49f89f3b2e5c0de0510258cddbc5 Ticket. The checking if(!data.tariffConf.changePolicyTimeout.emplty) removed and appendResetableTag() added for the changePolicyTimeout in the Serialize() function. --- diff --git a/stglibs/srvconf.lib/parsers/chg_tariff.cpp b/stglibs/srvconf.lib/parsers/chg_tariff.cpp index ca4ceb95..16c4b198 100644 --- a/stglibs/srvconf.lib/parsers/chg_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/chg_tariff.cpp @@ -78,9 +78,7 @@ if (!data.tariffConf.changePolicy.empty()) case TARIFF::DENY: stream << ""; break; } -if (!data.tariffConf.changePolicyTimeout.empty()) - stream << ""; - +appendResetableTag(stream, "changePolicyTimeout", data.tariffConf.changePolicyTimeout); for (size_t i = 0; i < DIR_NUM; ++i) if (!data.dirPrice[i].hDay.empty() && !data.dirPrice[i].mDay.empty() &&