fix small bugs
This commit is contained in:
@@ -4,7 +4,7 @@ return [
|
||||
'supportEmail' => 'rocho02@gmail.com',
|
||||
'infoEmail' => 'info@rocho-net.hu',
|
||||
'user.passwordResetTokenExpire' => 3600,
|
||||
'version' => 'v0.0.22',
|
||||
'version' => 'v0.0.23',
|
||||
'company' => 'movar',//gyor
|
||||
'company_name' => "Freimann Kft.",
|
||||
'product_visiblity' => 'account',// on reception which products to display. account or global
|
||||
|
||||
@@ -227,7 +227,7 @@ class AccountState extends \common\models\BaseFitnessActiveRecord
|
||||
$this->prev_money = 0;
|
||||
|
||||
if ( $this->type == AccountState::TYPE_CLOSE){
|
||||
$lastOpen = AccountState::readLast(AccountState::TYPE_OPEN,null, $this->id_account);
|
||||
$lastOpen = AccountState::readLast(AccountState::TYPE_OPEN,\Yii::$app->user->id, $this->id_account);
|
||||
if ( $lastOpen != null ){
|
||||
$start = $lastOpen->created_at;
|
||||
$this->prev_state = $lastOpen->id_account_state;
|
||||
|
||||
Reference in New Issue
Block a user