public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
Fixed a bug with sections and tags
whoisjake (author)
Sat May 10 14:38:11 -0700 2008
commit  32044e0cf46643fb3bbaddc4539c460f72df8a28
tree    6b2fb5aa28b4105fc9657dc7819e26eaf31d0413
parent  8a23772d42e56d48cd849354e4f03bf3514c05f8
...
80
81
82
83
 
84
85
86
...
80
81
82
 
83
84
85
86
0
@@ -80,7 +80,7 @@ module Admin
0
               tags = MephistoTag.find_by_sql("select * from tags where id in (#{taggings.collect{|tg| tg.tag_id}.join(',')})") unless taggings.empty?
0
             
0
               assigned_sections = MephistoAssignedSection.find_by_sql("select * from assigned_sections where article_id = #{a.id}")
0
- sections = MephistoSection.find_by_sql("select * from sections where id in (#{assigned_sections.collect{|as| as.id}.join(',')})") unless assigned_sections.empty?
0
+ sections = MephistoSection.find_by_sql("select * from sections where id in (#{assigned_sections.collect{|as| as.section_id}.join(',')})") unless assigned_sections.empty?
0
             end
0
             
0
             article.tag_list = (tags.collect{|tag| tag.name} + sections.collect{|section| section.name}).compact.join(",")

Comments

    No one has commented yet.