From: Maxim Mamontov Date: Sat, 30 Jul 2011 12:11:26 +0000 (+0300) Subject: Reset delayed tariff change when setting new tariff immediately X-Git-Tag: 2.408-alpha~55 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/143aec2c09f1eafee27b02ad3f138149eb1c20e2?hp=9ed663cdb641ed18d1b121017ea640df3daddfdc Reset delayed tariff change when setting new tariff immediately --- diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp index ff783471..fcd81a5e 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp @@ -394,6 +394,7 @@ if (tariffs->FindByName(tariff)) login, store)) { + u->ResetNextTariff(); u->WriteConf(); *retvalPtr = xmlrpc_c::value_boolean(true); return;