mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 08:12:32 -05:00
mcp variables error
This commit is contained in:
1 parent
353a0bc39c
commit
82a6910181
1 file changed
+6
@@ -78,6 +78,12 @@ module Mcp
|
||||
|
||||
return render_tool_error('Template has no fields') if @template.fields.blank?
|
||||
|
||||
if @template.variables_schema.present?
|
||||
Rollbar.warning("MCP send variables template: #{@template.id}") if defined?(Rollbar)
|
||||
|
||||
return render_tool_error('Templates with variables are not supported')
|
||||
end
|
||||
|
||||
submitters = (mcp_params['submitters'] || []).map do |s|
|
||||
attrs = s.slice('email', 'name', 'role', 'phone').compact_blank
|
||||
|
||||
|
||||
Reference in new issue
Block a user