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
|
end
|
||||||
# delete articles
|
# delete articles
|
||||||
if params[:outlisted_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
|
||||||
end
|
end
|
||||||
# Successfully done.
|
# Successfully done.
|
||||||
|
|
Loading…
Reference in a new issue