Browse Source

Correctif : username dans dernières commandes du tableau de bord du backend

prodstable
keun 7 years ago
parent
commit
a75d363db1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      common/models/Commande.php

+ 3
- 0
common/models/Commande.php View File

@@ -344,6 +344,9 @@ class Commande extends \yii\db\ActiveRecord
{
return Html::encode($this->user->prenom.' '.$this->user->nom) ;
}
elseif(strlen($this->username)) {
return Html::encode($this->username) ;
}
else {
return 'Client introuvable' ;
}

Loading…
Cancel
Save