newbie LAC Posted May 6, 2020 Posted May 6, 2020 Hello, \system\Poll\Poll.php /** * @brief URL to use instead of \IPS\Request::i()->url() */ public $url; $output = $template( $this, ( $this->url ?: \IPS\Request::i()->url() ) ); \applications\core\dev\html\global\global\poll.phtml \applications\core\dev\html\global\global\pollForm.phtml You're use the $url variable for all buttons but not for form action. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" It causes issues E.g. in the Forum Poll Widget you are use the $url. \applications\forums\dev\html\front\widgets\pollFormWidget.phtml <form accept-charset='utf-8' class="ipsForm {$class}" action="{$url->setQueryString( 'do', 'widgetPoll' )}" BomAle 1
bfarber Posted May 6, 2020 Posted May 6, 2020 Does changing the template from using $action to the poll $url property still work and resolve the issue you are facing?
newbie LAC Posted May 6, 2020 Author Posted May 6, 2020 8 minutes ago, bfarber said: Does changing the template from using $action to the poll $url property still work and resolve the issue you are facing? Yes. IP-Gamers 1
Solution bfarber Posted May 7, 2020 Solution Posted May 7, 2020 I'm submitting a change for review to adjust the action to use $url instead BomAle 1
Recommended Posts