Do not destroy articles in supplier sync. Mark them as deleted.
This commit is contained in:
parent
528295884e
commit
e275403cdd
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue