From: Alexander Ebert Date: Sun, 1 Mar 2015 09:32:52 +0000 (+0100) Subject: Allow search by template name components X-Git-Tag: 2.1.0~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6e1a68ece3113a0420f414a0940cb51c0b5f35a;p=GitHub%2FWoltLab%2FWCF.git Allow search by template name components --- diff --git a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php index eb7342b41d..a5e552dd90 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php @@ -98,7 +98,7 @@ class TemplateListPage extends SortablePage { if ($this->templateGroupID) $this->objectList->getConditionBuilder()->add('template.templateGroupID = ?', array($this->templateGroupID)); else $this->objectList->getConditionBuilder()->add('template.templateGroupID IS NULL'); - if ($this->searchTemplateName) $this->objectList->getConditionBuilder()->add('templateName LIKE ?', array($this->searchTemplateName.'%')); + if ($this->searchTemplateName) $this->objectList->getConditionBuilder()->add('templateName LIKE ?', array('%'.$this->searchTemplateName.'%')); if ($this->application) $this->objectList->getConditionBuilder()->add('application = ?', array($this->application)); }