Allow search by template name components
authorAlexander Ebert <ebert@woltlab.com>
Sun, 1 Mar 2015 09:32:52 +0000 (10:32 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 1 Mar 2015 09:32:52 +0000 (10:32 +0100)
wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php

index eb7342b41d65cb7d07c6facaabaafdcbdeb21fc6..a5e552dd9040b7bb47063a9a535f8667e8fb3625 100644 (file)
@@ -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));
        }