Commits vergleichen
2 Commits
main
...
fix_submis
Autor | SHA1 | Datum | |
---|---|---|---|
|
98b2d85e63 | ||
|
e02f78569a |
4 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
|
@ -131,6 +131,8 @@ class CustomWizard::Submission
|
|||
params[:key] = list_actor_id if list_actor_id
|
||||
|
||||
query = PluginStoreRow.where(params)
|
||||
query = query.order(order_by) if order_by
|
||||
|
||||
result = OpenStruct.new(submissions: [], total: nil)
|
||||
|
||||
query.each do |record|
|
||||
|
|
|
@ -157,7 +157,7 @@ class CustomWizard::Subscription
|
|||
return :none unless subscribed?
|
||||
return :business if business?
|
||||
return :standard if standard?
|
||||
return :community if community?
|
||||
:community if community?
|
||||
end
|
||||
|
||||
def subscribed?
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 2.4.23
|
||||
# version: 2.4.24
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
|
|
@ -40,7 +40,7 @@ describe CustomWizard::SubmissionSerializer do
|
|||
|
||||
it "should return field values, types and labels" do
|
||||
wizard = CustomWizard::Wizard.create(template_json["id"])
|
||||
list = CustomWizard::Submission.list(wizard, page: 0)
|
||||
list = CustomWizard::Submission.list(wizard, page: 0, order_by: 'id')
|
||||
|
||||
json_array = ActiveModel::ArraySerializer.new(
|
||||
list.submissions,
|
||||
|
|
Laden …
In neuem Issue referenzieren