From: Marcel Werk Date: Wed, 18 May 2022 14:17:39 +0000 (+0200) Subject: Removed nameExactly option X-Git-Tag: 5.5.0_Beta_3~4^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d3964c244c9d0155b2b3724dbcdb814591bd360;p=GitHub%2FWoltLab%2FWCF.git Removed nameExactly option --- diff --git a/com.woltlab.wcf/templates/search.tpl b/com.woltlab.wcf/templates/search.tpl index 8efade706b..a3233bbfd8 100644 --- a/com.woltlab.wcf/templates/search.tpl +++ b/com.woltlab.wcf/templates/search.tpl @@ -31,7 +31,6 @@
- {* deprecated *}{event name='authorOptions'}
diff --git a/wcfsetup/install/files/lib/data/search/SearchAction.class.php b/wcfsetup/install/files/lib/data/search/SearchAction.class.php index b830e94ddd..18d7caa8c5 100644 --- a/wcfsetup/install/files/lib/data/search/SearchAction.class.php +++ b/wcfsetup/install/files/lib/data/search/SearchAction.class.php @@ -54,7 +54,6 @@ class SearchAction extends AbstractDatabaseObjectAction $this->readString('q', true); $this->readString('type', true); $this->readString('username', true); - $this->readBoolean('nameExactly', true); $this->readBoolean('subjectOnly', true); $this->readString('startDate', true); $this->readString('endDate', true); diff --git a/wcfsetup/install/files/lib/system/search/SearchHandler.class.php b/wcfsetup/install/files/lib/system/search/SearchHandler.class.php index 781638dbef..523ea0f315 100644 --- a/wcfsetup/install/files/lib/system/search/SearchHandler.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchHandler.class.php @@ -224,9 +224,9 @@ final class SearchHandler if (!empty($this->parameters['username'])) { $sql = "SELECT userID FROM wcf" . WCF_N . "_user - WHERE username " . (!empty($this->parameters['nameExactly']) ? "= ?" : "LIKE ?"); + WHERE username = ?"; $statement = WCF::getDB()->prepareStatement($sql, 100); - $statement->execute([$this->parameters['username'] . (empty($this->parameters['nameExactly']) ? '%' : '')]); + $statement->execute([$this->parameters['username']]); $this->userIDs = $statement->fetchAll(\PDO::FETCH_COLUMN); } @@ -311,7 +311,6 @@ final class SearchHandler 'additionalData' => $this->getAdditionalData(), 'sortField' => $this->parameters['sortField'] ?? '', 'sortOrder' => $this->parameters['sortOrder'] ?? '', - 'nameExactly' => $this->parameters['nameExactly'] ?? '', 'subjectOnly' => $this->parameters['subjectOnly'] ?? '', 'startDate' => $this->parameters['startDate'] ?? '', 'endDate' => $this->parameters['endDate'] ?? '', diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 7f1d1f446e..27471990f1 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4508,7 +4508,6 @@ Dateianhänge: - @@ -5618,5 +5617,6 @@ Benachrichtigungen auf {PAGE_TITLE|phra + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index c9e8dcd267..bea06f9691 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4510,7 +4510,6 @@ Attachments: - @@ -5620,5 +5619,6 @@ your notifications on {PAGE_TITLE|phras +