Do not destroy articles in supplier sync. Mark them as deleted.

This commit is contained in:
Benjamin Meichsner 2013-03-18 19:05:11 +01:00
parent 528295884e
commit e275403cdd

View file

@ -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.