From: Alan Knowles Date: Fri, 7 Oct 2016 04:38:00 +0000 (+0800) Subject: DataObjects/Core_groups.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b922ba6ebb152768e79075edba668273e13f7cfb DataObjects/Core_groups.php --- diff --git a/DataObjects/Core_groups.php b/DataObjects/Core_groups.php index 19ed1c74..33103d72 100644 --- a/DataObjects/Core_groups.php +++ b/DataObjects/Core_groups.php @@ -30,6 +30,13 @@ class Pman_Core_DataObjects_Groups extends DB_DataObject ###END_AUTOCODE // group types?? + function applyFilters($q, $au, $roo) + { + if (!empty($q['query']['name_starts'])) { + $v = $this->escape($q['query']['name_starts']); + $this->whereAdd("name like '{$v}%'"); + } + } function toEventString() { return $this->name;