noosfero | Invitation to events (!1445)

Rodrigo Souto gitlab at mg.gitlab.com
Fri May 11 15:43:16 BRT 2018


Rodrigo Souto started a new discussion on app/controllers/my_profile/event_invitation_controller.rb:

> +    if params.has_key?(:invitation)
> +      invitation = EventInvitation.find(params[:invitation])
> +      invitation.decision = params[:event_invitation][:decision]
> +    else
> +      invitation = EventInvitation.new(event: Event.find(params[:event]),
> +                                       decision: params[:event_invitation][:decision],
> +                                       guest: current_person)
> +    end
> +
> +    task = InviteEvent.unconfirmed(invitation.event).find_by(target: invitation.guest)
> +    task.finish if task && task.status == Task::Status::ACTIVE
> +
> +    if invitation && invitation.save
> +      respond_to do |format|
> +        format.js do
> +          # comment_to_render = @comment.comment_root

Remove this comment.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1445#note_72741311
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/20180511/ddab06b0/attachment.html>


More information about the Noosfero-dev mailing list