<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,10 +31,10 @@ module GalleryItemTags
       raise GalleryTagError.new(&quot;`by' attribute of `each' tag must be set to a valid field name&quot;)
     end
     order = (%w[ASC DESC].include?(tag.attr['order'].to_s.upcase)) ? tag.attr['order'] : &quot;ASC&quot;
-    options[:order] = &quot;#{by} #{order}&quot;
+    options[:order] = &quot;#{GalleryItem.table_name}.#{by} #{order} &quot;    
     options[:limit] = tag.attr['limit'] ? tag.attr['limit'].to_i  : 9999
     options[:offset] = tag.attr['offset'] ? tag.attr['offset'].to_i  : 0
-    options[:conditions] = {:parent_id =&gt; nil}
+    options[:conditions] = { &quot;#{GalleryItem.table_name}.parent_id&quot; =&gt; nil}  
     
     if !tag.attr['keywords'].nil? || !tag.attr['current_keywords'].nil?                                                                                                                                  
       keywords = !tag.attr['keywords'].nil? ? tag.attr['keywords'].split(',') : []</diff>
      <filename>lib/gallery_item_tags.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7426c41987965dda032ab785de0e9ce6445842cf</id>
    </parent>
  </parents>
  <author>
    <name>Tom Cowell</name>
    <email>tc@eightsquarestudio.com</email>
  </author>
  <url>http://github.com/pilu/radiant-gallery/commit/a7943332f245b51eab9669486e6f183169969054</url>
  <id>a7943332f245b51eab9669486e6f183169969054</id>
  <committed-date>2009-08-04T03:19:23-07:00</committed-date>
  <authored-date>2009-08-04T03:17:03-07:00</authored-date>
  <message>fix for keywords='keyword' scope='all' on gallery:items:each, thanks dip00dip

Signed-off-by: Tom Cowell &lt;tc@eightsquarestudio.com&gt;</message>
  <tree>0aa0765e4f91ca2e3ee7ea7d4ac18b32c9e96224</tree>
  <committer>
    <name>Tom Cowell</name>
    <email>tc@eightsquarestudio.com</email>
  </committer>
</commit>
