From 0bccec4ece837941fd6ff445bbfceb62be928788 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 8 Aug 2016 10:26:03 +0300 Subject: [PATCH] Ticket 37. The object tariff definition moved into the if(newTariff) construction. --- .../stargazer/plugins/configuration/sgconfig/parser_users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index b30b4e86..841fafa1 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -594,10 +594,10 @@ int CHG_USER::ApplyChanges() if (!m_ucr.tariffName.empty()) { - const TARIFF * tariff = u->GetTariff(); const TARIFF * newTariff = m_tariffs.FindByName(m_ucr.tariffName.const_data()); if (newTariff) { + const TARIFF * tariff = u->GetTariff(); if (tariff->TariffChangeIsAllowed(*newTariff) == "") { if (!u->GetProperty().tariffName.Set(m_ucr.tariffName.const_data(), &m_currAdmin, m_login, &m_store)) -- 2.44.2