-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix release 2.1.12 - This should fix a problem with the strict mode and the "Group By" statement from sql.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of MetaModels/core. | ||
* | ||
* (c) 2012-2019 The MetaModels team. | ||
* (c) 2012-2021 The MetaModels team. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -18,7 +18,7 @@ | |
* @author Sven Baumann <[email protected]> | ||
* @author David Molineus <[email protected]> | ||
* @author Marc Reimann <[email protected]> | ||
* @copyright 2012-2019 The MetaModels team. | ||
* @copyright 2012-2021 The MetaModels team. | ||
* @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later | ||
* @filesource | ||
*/ | ||
|
@@ -164,7 +164,7 @@ public function getFilterOptions($idList, $usedOnly, &$arrCount = null) | |
->from($this->getMetaModel()->getTableName()) | ||
->where('id IN (:ids)') | ||
->groupBy($strCol) | ||
->orderBy('FIELD(id, :ids)') | ||
->orderBy('MIN(FIELD(id, :ids))') | ||
->setParameter('ids', $idList, Connection::PARAM_STR_ARRAY) | ||
->execute(); | ||
} else { | ||
|