##// END OF EJS Templates
Trac importer: prevent validation failure due to the default value when saving the Resolution custom field if it already exists (#869)....
Jean-Philippe Lang -
r1271:7fb72e671b86
parent child
Show More
@@ -324,8 +324,9 namespace :redmine do
324 324 :is_filter => true) if r.nil?
325 325 r.trackers = Tracker.find(:all)
326 326 r.projects << @target_project
327 r.possible_values = %w(fixed invalid wontfix duplicate worksforme)
328 custom_field_map['resolution'] = r if r.save
327 r.possible_values = (r.possible_values + %w(fixed invalid wontfix duplicate worksforme)).flatten.compact.uniq
328 r.save!
329 custom_field_map['resolution'] = r
329 330
330 331 # Tickets
331 332 print "Migrating tickets"
General Comments 0
You need to be logged in to leave comments. Login now