Browse Source

[backend] Abonnements : pouvoir rechercher par subscription.username

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
0055d81aac
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common/models/SubscriptionSearch.php

+ 2
- 1
common/models/SubscriptionSearch.php View File

$query->andFilterWhere([ $query->andFilterWhere([
'or', 'or',
['like', 'user.lastname', $this->username], ['like', 'user.lastname', $this->username],
['like', 'user.name', $this->username]
['like', 'user.name', $this->username],
['like', 'subscription.username', $this->username]
]); ]);
$query->andFilterWhere(['like', 'product.name', $this->product_name]) ; $query->andFilterWhere(['like', 'product.name', $this->product_name]) ;

Loading…
Cancel
Save