Skip to content

Commit

Permalink
Merge pull request #4 from invaderhd/patch-1
Browse files Browse the repository at this point in the history
Fix Filters on translation page
  • Loading branch information
uran1980 committed Mar 9, 2016
2 parents 79ab4e8 + afc2f52 commit d1150f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/search/SourceMessageSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,15 @@ public function search($params)
}

if ($this->status == static::STATUS_TRANSLATED) {
$query->joinWith(['messages']);
$query->translated();
}
if ($this->status == static::STATUS_NOT_TRANSLATED) {
$query->joinWith(['messages']);
$query->notTranslated();
}
if ( $this->status == static::STATUS_DELETED ) {
$query->joinWith(['messages']);
$query->deleted();
}

Expand Down

0 comments on commit d1150f0

Please sign in to comment.