Skip to content

Commit

Permalink
Merge pull request #5301 from Mnkras/bugfix/5277
Browse files Browse the repository at this point in the history
Fix #5277
  • Loading branch information
aembler committed Apr 6, 2017
2 parents ddacc24 + 5ae93f3 commit 03a23b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions concrete/src/Attribute/StandardSetManager.php
Expand Up @@ -36,6 +36,7 @@ public function getUnassignedAttributeKeys()
'select sk from \Concrete\Core\Entity\Attribute\SetKey sk where sk.attribute_key = :key'
);
$query->setParameter('key', $key);
$query->setMaxResults(1);
$r = $query->getOneOrNullResult();
if (!is_object($r)) {
$attributes[] = $key;
Expand Down

0 comments on commit 03a23b3

Please sign in to comment.