Added display of the form for sending a vote

This commit is contained in:
Alexandr Antonov 2024-08-22 12:54:24 +03:00
parent d6901349eb
commit 3971df0832

View File

@ -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