From e275403cdd57448f35147bcd3fa1bd192783e702 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Mon, 18 Mar 2013 19:05:11 +0100 Subject: [PATCH] Do not destroy articles in supplier sync. Mark them as deleted. --- app/controllers/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index a9af168e..820242d6 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -92,7 +92,7 @@ class ArticlesController < ApplicationController end # delete articles if params[:outlisted_articles] - params[:outlisted_articles].keys.each {|id| Article.find(id).destroy } + params[:outlisted_articles].keys.each {|id| Article.find(id).mark_as_deleted } end end # Successfully done.