From: Elena Mamontova Date: Sun, 17 Jul 2016 17:02:10 +0000 (+0300) Subject: Ticket. td->tariffConf.traffType value getting changed in the X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/f37a10e385478953dcc19c2ca3b75bf5465a79c1 Ticket. td->tariffConf.traffType value getting changed in the RestoreTariff() function. --- diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp index f757d055..2a9abf6e 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp @@ -275,7 +275,8 @@ try st->Get(3, td->tariffConf.fee); st->Get(4, td->tariffConf.free); st->Get(5, td->tariffConf.passiveCost); - st->Get(6, td->tariffConf.traffType); +// st->Get(6, td->tariffConf.traffType); + td->tariffConf.traffType = TARIFF::IntToTraffType(Get(st, 6)); if (schemaVersion > 0) { std::string period;