Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Remove subscription requirement for field interpolation.
Dieser Commit ist enthalten in:
Ursprung
631b5fe44c
Commit
091362cb00
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -255,7 +255,7 @@ class CustomWizard::Mapper
|
|||
end
|
||||
end
|
||||
|
||||
if opts[:template] && CustomWizard::Subscription.subscribed?
|
||||
if opts[:template] #&& CustomWizard::Subscription.subscribed?
|
||||
template = Liquid::Template.parse(string)
|
||||
string = template.render(data)
|
||||
end
|
||||
|
|
|
@ -373,7 +373,7 @@ describe CustomWizard::Mapper do
|
|||
expect(result).to eq(template_params["step_1_field_1"])
|
||||
end
|
||||
|
||||
it "requires a subscription" do
|
||||
it "does not require a subscription" do
|
||||
template = '{{ "w{step_1_field_1}" | size }}'
|
||||
mapper = create_template_mapper(template_params, user1)
|
||||
result = mapper.interpolate(
|
||||
|
@ -383,7 +383,7 @@ describe CustomWizard::Mapper do
|
|||
wizard: true,
|
||||
value: true
|
||||
)
|
||||
expect(result).to eq("{{ \"#{template_params["step_1_field_1"]}\" | size }}")
|
||||
expect(result).to eq("5")
|
||||
end
|
||||
|
||||
context "with a subscription" do
|
||||
|
|
Laden …
In neuem Issue referenzieren