Permalink
Browse files

Add item to changelog.

  • Loading branch information...
1 parent defe9c2 commit 5d6cbacb1e0054a457b833b2624f2086cd8bce52 @jonnsl committed Aug 9, 2011
Showing with 6 additions and 3 deletions.
  1. +4 −0 docs/manual/appendices/changelog.xml
  2. +2 −3 libraries/joomla/form/fields/rules.php
@@ -40,6 +40,10 @@
<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>
<listitem>
@@ -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);

0 comments on commit 5d6cbac

Please sign in to comment.