Upstream patch: Enhancement so filters can be supplied to run_filter()
This commit is contained in:
parent
9dda9f43f4
commit
5c9750e957
@ -1127,9 +1127,10 @@ class Kohana_ORM extends Model implements serializable {
|
|||||||
* @param string $value The value to filter
|
* @param string $value The value to filter
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function run_filter($field, $value)
|
protected function run_filter($field, $value, $filters=NULL)
|
||||||
{
|
{
|
||||||
$filters = $this->filters();
|
if (is_null($filters))
|
||||||
|
$filters = $this->filters();
|
||||||
|
|
||||||
// Get the filters for this column
|
// Get the filters for this column
|
||||||
$wildcards = empty($filters[TRUE]) ? array() : $filters[TRUE];
|
$wildcards = empty($filters[TRUE]) ? array() : $filters[TRUE];
|
||||||
|
Reference in New Issue
Block a user