Skip to content

Commit

Permalink
Fixed issue #11359: Token display doesn't search for additional attri…
Browse files Browse the repository at this point in the history
…butes
  • Loading branch information
LouisGac committed Jun 13, 2016
1 parent f5ab5d4 commit c488e96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/models/TokenDynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,11 @@ public function search()
$criteria->compare('validfrom',$this->validfrom,true);
$criteria->compare('validuntil',$this->validuntil,true);

foreach($this->custom_attributes as $sColName => $oColumn)
{
$criteria->compare($sColName,$this->$sColName,true);
}

$dataProvider=new CActiveDataProvider('TokenDynamic', array(
'sort'=>$sort,
'criteria'=>$criteria,
Expand Down

0 comments on commit c488e96

Please sign in to comment.