add cassaopen/default account behaviors

This commit is contained in:
2016-01-12 17:19:34 +01:00
parent 7c584a0779
commit fbb2d7e5dc
6 changed files with 95 additions and 2 deletions

View File

@@ -74,6 +74,8 @@ class AccountStateController extends Controller {
$lastStates = AccountState::readLastForUser ( AccountState::TYPE_CLOSE );
$lastStates = AccountState::modelsToArray ( $lastStates );
// \Yii::$app->session->setFlash('error','ok');
$model = new AccountState ();
$model->type = AccountState::TYPE_OPEN;
$model->id_user = Yii::$app->user->id;