Remember per_page number when updating multiple articles. Closes #36
This commit is contained in:
parent
fd97c1fc60
commit
27bec1f860
2 changed files with 6 additions and 10 deletions
|
|
@ -195,11 +195,11 @@ class ArticlesController < ApplicationController
|
|||
flash[:error] = 'Keine Aktion ausgewählt!'
|
||||
end
|
||||
# action succeded
|
||||
redirect_to supplier_articles_path(@supplier)
|
||||
redirect_to supplier_articles_path(@supplier, :per_page => params[:per_page])
|
||||
|
||||
rescue => e
|
||||
flash[:error] = 'Ein Fehler ist aufgetreten: ' + e
|
||||
redirect_to supplier_articles_path(@supplier)
|
||||
redirect_to supplier_articles_path(@supplier, :per_page => params[:per_page])
|
||||
end
|
||||
|
||||
# lets start with parsing articles from uploaded file, yeah
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue