Skip to content

Commit c95b6e9

Browse files
committed
Fix nil errors in form builder when is system
1 parent 782784c commit c95b6e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/forms/concerns/decidim/reporting_proposals/form_builder_override.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module FormBuilderOverride
1212
included do
1313
def file_field(object_name, options = {})
1414
return super(object_name, options) unless Decidim::ReportingProposals.use_camera_button
15+
return super(object_name, options) if @object_name == "editor_image" || @object_name == "oauth_application"
1516

1617
unless @template.snippets.any?(:reporting_proposals_camera_scripts) || @template.snippets.any?(:reporting_proposals_camera_styles)
1718
@template.snippets.add(:reporting_proposals_camera_scripts, @template.prepend_javascript_pack_tag("decidim_reporting_proposals_camera"))

0 commit comments

Comments
 (0)