]> git.stg.codes - stg.git/commitdiff
Reset delayed tariff change when setting new tariff immediately
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 30 Jul 2011 12:11:26 +0000 (15:11 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 30 Jul 2011 12:11:26 +0000 (15:11 +0300)
projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp

index ff783471ab00f1d148439a2a2cafbb45498171a5..fcd81a5e50f31adc05caab4b17a5e3dc61f18a17 100644 (file)
@@ -394,6 +394,7 @@ if (tariffs->FindByName(tariff))
                                             login,
                                             store))
             {
+            u->ResetNextTariff();
             u->WriteConf();
             *retvalPtr = xmlrpc_c::value_boolean(true);
             return;