From: Ɓukasz Rekucki Date: Tue, 29 Sep 2009 20:53:09 +0000 (+0200) Subject: Don't erase old publcations, so that the relations don't disappear. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/663d1c8f22c26b51c0c132388cde9d28fa6eeef0?hp=-c Don't erase old publcations, so that the relations don't disappear. --- 663d1c8f22c26b51c0c132388cde9d28fa6eeef0 diff --git a/redmine/redmine_publications/app/controllers/publications_controller.rb b/redmine/redmine_publications/app/controllers/publications_controller.rb index fd623b99..c7a11948 100644 --- a/redmine/redmine_publications/app/controllers/publications_controller.rb +++ b/redmine/redmine_publications/app/controllers/publications_controller.rb @@ -14,8 +14,6 @@ class PublicationsController < ApplicationController def refresh regexp = Regexp.new(Setting.plugin_redmine_publications[:pattern]) - Publication.delete_all() - repo = Repository.find(:first, :conditions => ['project_id = ?', Setting.plugin_redmine_publications[:project]] ) Rails.logger.info('[INFO] Importing changes from ' << repo.url)