forked from bofh/fetsite
FIXED themengruppe verwalten + faqs order
This commit is contained in:
@@ -77,7 +77,7 @@ class ThemenController < ApplicationController
|
||||
end
|
||||
end
|
||||
def fragen
|
||||
@thema = Thema.find(params[:thema_id])
|
||||
@thema = Thema.find(params[:id])
|
||||
@fragen=@thema.fragen
|
||||
respond_to do |format|
|
||||
format.js
|
||||
|
||||
@@ -13,7 +13,7 @@ class ThemengruppenController < ApplicationController
|
||||
end
|
||||
end
|
||||
def faqs
|
||||
@themengruppen = Themengruppe.order(:priority).includes(:themen,{themen: :fragen})
|
||||
@themengruppen = Themengruppe.order("themengruppen.priority").includes(:themen,{themen: :fragen}).order("themen.priority").reverse
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user