Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -447,4 +447,28 @@ class _Coupon extends \IPS\Node\Model
|
||||
$this->used_by = array();
|
||||
$this->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* Search
|
||||
*
|
||||
* @param string $column Column to search
|
||||
* @param string $query Search query
|
||||
* @param string|null $order Column to order by
|
||||
* @param mixed $where Where clause
|
||||
* @return array
|
||||
*/
|
||||
public static function search( $column, $query, $order, $where=array() )
|
||||
{
|
||||
if( $column === '_title' )
|
||||
{
|
||||
$column = 'c_code';
|
||||
}
|
||||
|
||||
if( $order === '_title' )
|
||||
{
|
||||
$order = 'c_code';
|
||||
}
|
||||
|
||||
return parent::search( $column, $query, $order, $where );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user