From f593f4ebbb85b779f7424a1f49465672d2076cf4 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 25 May 2016 11:44:40 +0300 Subject: [PATCH 1/1] Ticket 37. The if-else construction and conf.ReadString() function call added for the 'ChangePolicy' parameter. --- projects/stargazer/plugins/store/files/file_store.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index 2a7eb6c1..03a672aa 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -1465,6 +1465,11 @@ if (conf.ReadString("Period", &str, "month") < 0) td->tariffConf.period = TARIFF::MONTH; else td->tariffConf.period = TARIFF::StringToPeriod(str); + +if (conf.ReadString("ChangePolicy", &str, "allow") < 0) + td->tariffConf.changePolicy = TARIFF::ALLOW; +else + td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(str); return 0; } //----------------------------------------------------------------------------- -- 2.44.2