@@ -167,7 +167,7 namespace :redmine do | |||||
167 | has_many :attachments, :class_name => "TracAttachment", |
|
167 | has_many :attachments, :class_name => "TracAttachment", | |
168 | :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" + |
|
168 | :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" + | |
169 | " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'ticket'" + |
|
169 | " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'ticket'" + | |
170 | ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{id}\'' |
|
170 | ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\'' | |
171 | has_many :customs, :class_name => "TracTicketCustom", :foreign_key => :ticket |
|
171 | has_many :customs, :class_name => "TracTicketCustom", :foreign_key => :ticket | |
172 |
|
172 | |||
173 | def ticket_type |
|
173 | def ticket_type | |
@@ -207,7 +207,7 namespace :redmine do | |||||
207 | has_many :attachments, :class_name => "TracAttachment", |
|
207 | has_many :attachments, :class_name => "TracAttachment", | |
208 | :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" + |
|
208 | :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" + | |
209 | " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'wiki'" + |
|
209 | " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'wiki'" + | |
210 | ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{id}\'' |
|
210 | ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\'' | |
211 |
|
211 | |||
212 | def self.columns |
|
212 | def self.columns | |
213 | # Hides readonly Trac field to prevent clash with AR readonly? method (Rails 2.0) |
|
213 | # Hides readonly Trac field to prevent clash with AR readonly? method (Rails 2.0) |
General Comments 0
You need to be logged in to leave comments.
Login now