Skip to content

Commit

Permalink
PSD-3910 - Fix remove_upload action to stay on add_supporting_images …
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
mirotriad committed Jan 31, 2025
1 parent c412ca8 commit b19d415
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/notifications/edit_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,10 @@ def remove_upload
@notification.image_upload_ids.delete(upload.id)
@notification.save!
upload.destroy!
flash[:success] = "Supporting image removed successfully"
end
redirect_to notification_edit_path(@notification, step)
@image_upload = ImageUpload.new(upload_model: @notification)
redirect_to notification_edit_path(@notification, :add_supporting_images)
end

private
Expand Down

0 comments on commit b19d415

Please sign in to comment.