Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4638'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Apr 1, 2024
2 parents 4087f39 + 558c876 commit 0aee844
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/controllers/api/changeset_comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create

# Return a copy of the updated changeset
@changeset = changeset
render "api/changesets/changeset"
render "api/changesets/show"

respond_to do |format|
format.xml
Expand All @@ -67,7 +67,7 @@ def destroy

# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
render "api/changesets/show"

respond_to do |format|
format.xml
Expand All @@ -92,7 +92,7 @@ def restore

# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
render "api/changesets/show"

respond_to do |format|
format.xml
Expand Down
7 changes: 3 additions & 4 deletions app/controllers/api/changesets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def show
@comments = @comments.unscope(:where => :visible) if params[:show_hidden_comments].presence && can?(:restore, ChangesetComment)
@comments = @comments.includes(:author)
end
render "changeset"

respond_to do |format|
format.xml
Expand Down Expand Up @@ -198,7 +197,7 @@ def update

check_changeset_consistency(@changeset, current_user)
@changeset.update_from(new_changeset, current_user)
render "changeset"
render "show"

respond_to do |format|
format.xml
Expand All @@ -224,7 +223,7 @@ def subscribe

# Return a copy of the updated changeset
@changeset = changeset
render "changeset"
render "show"

respond_to do |format|
format.xml
Expand All @@ -250,7 +249,7 @@ def unsubscribe

# Return a copy of the updated changeset
@changeset = changeset
render "changeset"
render "show"

respond_to do |format|
format.xml
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0aee844

Please sign in to comment.