[Solar-talk] Bookmark/tag patch

Paul M Jones pmjones at solarphp.com
Mon Oct 2 10:10:43 PDT 2006


On Sep 30, 2006, at 10:06 PM, Travis Swicegood wrote:

> Attached is the patch I needed to apply to get the bookmark app  
> working.  Without it, 'name' is ambiguous.  It seems that that  
> would be a pretty common column, so I'd say the tags should always  
> be explicit.
...
> Index: Solar/Content/Abstract.php
> ===================================================================
> --- Solar/Content/Abstract.php	(revision 1867)
> +++ Solar/Content/Abstract.php	(working copy)
> @@ -350,10 +350,10 @@
>          $select->multiWhere($where);
>
>          // group by tag name
> -        $select->group('name');
> +        $select->group('tags.name');
>
>          // order and return
> -        $select->order('name');
> +        $select->order('tags.name');
>          return $select->fetch('pairs');
>      }

Applied and committed; thanks.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list