Project

General

Profile

Patch #6469 ยป journals_query.patch

Nelzin Alexander, 2010-09-23 07:56

View differences:

app/models/journal.rb (revision 1539)
36 36
                            :author_key => :user_id,
37 37
                            :find_options => {:include => [{:issue => :project}, :details, :user],
38 38
                                              :conditions => "#{Journal.table_name}.journalized_type = 'Issue' AND" +
39
                                                             " (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')"}
39
                                                             " (#{JournalDetail.table_name}.prop_key = 'status_id' OR LENGTH(#{Journal.table_name}.notes) > 0)"}
40 40
  
41 41
  def save(*args)
42 42
    # Do not save an empty journal
    (1-1/1)