Add property reception show stock.

This commit is contained in:
2017-02-06 08:20:18 +01:00
parent 7bbd4dcfa4
commit c8e3ef6754
7 changed files with 91 additions and 26 deletions

View File

@@ -133,7 +133,7 @@ class ContractForm extends Model {
],
[
[
'ticket_type'
'ticket_type'
],
'validateTicketType'
] ,
@@ -154,7 +154,7 @@ class ContractForm extends Model {
public function validateTicketType($attribute, $params) {
$this->ticketType = TicketType::findOne ( $this->ticket_type );
if (! isset ( $this->ticketType )) {
if (! isset ( $this->ticketType ) ) {
$this->addError ( $attribute, "Bérlet típus nem található" );
}else{
$contracts = Contract::find()