Commit 105d88f6 authored by minahilnichols's avatar minahilnichols

Check trial param

parent 5faa7881
......@@ -27,7 +27,9 @@ class TrialsController < ApplicationController
end
def create_lead
return create_hand_raise_lead unless Gitlab::Utils.to_boolean(params[:trial])
if params.has_key?(:trial)
return create_hand_raise_lead unless Gitlab::Utils.to_boolean(params[:trial])
end
url_params = { glm_source: params[:glm_source], glm_content: params[:glm_content] }
@result = GitlabSubscriptions::CreateLeadService.new.execute({ trial_user: company_params })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment