Skip to content

Commit d62c7bb

Browse files
committed
Fix issue #379
1 parent e2e21f0 commit d62c7bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MetaModels/Attribute/BaseSimple.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ public function setDataFor($arrValues)
8686
*/
8787
public function getFilterOptions($idList, $usedOnly, &$arrCount = null)
8888
{
89+
// If empty list, return empty result. See also #379 for discussion.
90+
if ($idList === array()) {
91+
return array();
92+
}
93+
8994
$strCol = $this->getColName();
9095
if ($idList) {
9196
$objRow = $this->getMetaModel()->getServiceContainer()->getDatabase()

0 commit comments

Comments
 (0)