]> git.openstreetmap.org Git - rails.git/commitdiff
Send only reporters frame on frame requests
authorAnton Khorev <tony29@yandex.ru>
Fri, 7 Mar 2025 15:08:21 +0000 (18:08 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 7 Mar 2025 15:08:21 +0000 (18:08 +0300)
app/controllers/issues/reporters_controller.rb

index 78d9e2cc89d66d684585d685a8767e5fa27d7fde..b6513f443f8b6052ed7de91aa1f459f2fa4e7eee 100644 (file)
@@ -18,6 +18,8 @@ module Issues
           :users => User.in_order_of(:id, user_ids)
         }
       }
+
+      render :partial => "reporters", :locals => { :issue => @issue } if turbo_frame_request?
     rescue ActiveRecord::RecordNotFound
       redirect_to :controller => "/errors", :action => "not_found"
     end