Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Add item to changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnsl committed Aug 9, 2011
1 parent defe9c2 commit 5d6cbac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/manual/appendices/changelog.xml
Expand Up @@ -39,6 +39,10 @@
<listitem>
<para>Implemented graceful failure when update manifest is not available</para>
</listitem>
<listitem>
<para>Fixed 'Call to a member function qn() on a non-object in
libraries/joomla/form/fields/rules.php on line 304'.</para>
</listitem>
<listitem>
<para></para>
</listitem>
Expand Down
5 changes: 2 additions & 3 deletions libraries/joomla/form/fields/rules.php
Expand Up @@ -300,9 +300,8 @@ protected function getUserGroups()
{
// Initialise variables.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('a.id AS value, a.title AS text, COUNT(DISTINCT b.id) AS level, a.parent_id')
->from('#__usergroups AS a')->leftJoin($query->qn('#__usergroups') . ' AS b ON a.lft > b.lft AND a.rgt < b.rgt')->group('a.id')
$query = $db->getQuery(true)->select('a.id AS value, a.title AS text, COUNT(DISTINCT b.id) AS level, a.parent_id')
->from('#__usergroups AS a')->leftJoin($db->quoteName('#__usergroups') . ' AS b ON a.lft > b.lft AND a.rgt < b.rgt')->group('a.id')
->order('a.lft ASC');

$db->setQuery($query);
Expand Down

0 comments on commit 5d6cbac

Please sign in to comment.