Skip to content

Commit

Permalink
After modifying non-marc authority files, show modified record
Browse files Browse the repository at this point in the history
Currently, after editing those records, Muscat takes you to the record list,
without allowing to double-check if the editing was right.

Partially closes rism-digital#1584
  • Loading branch information
fjorba committed Dec 16, 2024
1 parent 78f2560 commit ebe4c0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/admin/liturgical_feast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def index
# redirect update failure for preserving sidebars
def update
update! do |success,failure|
success.html { redirect_to collection_path }
success.html { redirect_to resource_path(params[:id]) }
failure.html { redirect_back fallback_location: root_path, flash: { :error => "#{I18n.t(:error_saving)}" } }
end
# Run the eventual triggers
Expand Down
2 changes: 1 addition & 1 deletion app/admin/place.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def index
# redirect update failure for preserving sidebars
def update
update! do |success,failure|
success.html { redirect_to collection_path }
success.html { redirect_to resource_path(params[:id]) }
failure.html { redirect_back fallback_location: root_path, flash: { :error => "#{I18n.t(:error_saving)}" } }
end
# Run the eventual triggers
Expand Down
2 changes: 1 addition & 1 deletion app/admin/standard_term.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def index
# redirect update failure for preserving sidebars
def update
update! do |success,failure|
success.html { redirect_to collection_path }
success.html { redirect_to resource_path(params[:id]) }
failure.html { redirect_back fallback_location: root_path, flash: { :error => "#{I18n.t(:error_saving)}" } }
end

Expand Down
2 changes: 1 addition & 1 deletion app/admin/standard_title.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def index
# redirect update failure for preserving sidebars
def update
update! do |success,failure|
success.html { redirect_to collection_path }
success.html { redirect_to resource_path(params[:id]) }
failure.html { redirect_back fallback_location: root_path, flash: { :error => "#{I18n.t(:error_saving)}" } }
end

Expand Down

0 comments on commit ebe4c0a

Please sign in to comment.