noosfero | WIP: Custom forms graphs (!1597)

Rodrigo Souto gitlab at mg.gitlab.com
Fri Aug 17 11:02:13 BRT 2018


Rodrigo Souto started a new discussion on plugins/custom_forms/controllers/custom_forms_plugin_profile_controller.rb:

>      end
>    end
>  
> +  def download_field_answers
> +    field = CustomFormsPlugin::TextField.find_by(name: params[:field_name])

This could return fields with the same name that are on any other form on the system. Move it below the `@form` and fetch it with something like `@form.fields.find_by ...`.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1597#note_95148170
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180817/24154394/attachment.html>


More information about the Noosfero-dev mailing list