small key toggle fix, add empty message file waste.php

This commit is contained in:
Roland Schneider 2017-03-19 15:29:01 +01:00
parent 59e6166bf7
commit 429b9ccaf8
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,20 @@
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
];

View File

@ -0,0 +1,2 @@
username:cutlertmv@gmail.com
password:cutler2016!

View File

@ -85,7 +85,7 @@ class KeyToggleForm extends Model
Log::log([ Log::log([
'type' =>Log::$TYPE_KEY_ASSIGN, 'type' =>Log::$TYPE_KEY_ASSIGN,
'message' => 'Kulcs visszaadás - Kártya/Kulcs/Vendég:' .$this->keyCard->number ."/" .$this->keyModel->number . "/".$this->keyCard->customer->name, 'message' => 'Kulcs visszaadás - Kártya/Kulcs/Vendég:' .$this->keyCard->number ."/" .$this->keyModel->number . "/".$this->keyCard->customer->name,
'id_key' => $this->card->id_card, 'id_key' => $this->keyCard->id_card,
'id_customer' => $this->keyCard->customer->id_customer 'id_customer' => $this->keyCard->customer->id_customer
]); ]);
DoorLog::mkDoorLog(-1,$this->keyCard,$this->keyCard->customer,$this->keyModel ); DoorLog::mkDoorLog(-1,$this->keyCard,$this->keyCard->customer,$this->keyModel );