From 3971df0832dcfad13665653a4681b0817a83087e Mon Sep 17 00:00:00 2001 From: Alexandr Antonov Date: Thu, 22 Aug 2024 12:54:24 +0300 Subject: [PATCH] Added display of the form for sending a vote --- app/controllers/helpdesk_votes_controller.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/helpdesk_votes_controller.rb b/app/controllers/helpdesk_votes_controller.rb index a5cbabf..fa5909a 100644 --- a/app/controllers/helpdesk_votes_controller.rb +++ b/app/controllers/helpdesk_votes_controller.rb @@ -36,8 +36,11 @@ class HelpdeskVotesController < ApplicationController @ticket.vote = params[:vote] if params[:vote] render :action => 'show' else - @ticket.update_vote(params[:vote]) if params[:vote] - render :action => 'vote' + #redmine issues/145285 + #@ticket.update_vote(params[:vote]) if params[:vote] + #render :action => 'vote' + @ticket.vote = params[:vote] if params[:vote] + render :action => 'show' end end