From d49886f44f68d96ac8c63208846ecf8b73861a2d Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Thu, 6 Jan 2022 15:29:40 -0800 Subject: [PATCH] fix(web/html/addvote): convert quorum to str using strval Previous conversion was causing a straight up bug when submitting new proposals. This patch fixes that issue. Signed-off-by: Kevin Morris --- web/html/addvote.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/html/addvote.php b/web/html/addvote.php index 3e4def44..83b800b8 100644 --- a/web/html/addvote.php +++ b/web/html/addvote.php @@ -69,9 +69,8 @@ if (has_credential(CRED_TU_ADD_VOTE)) { if (!empty($_POST['addVote']) && empty($error)) { // Convert $quorum to a String of maximum length "12.34" (5). - $quorum_str = substr(strval($quorum), min(5, strlen($quorum))); add_tu_proposal($_POST['agenda'], $_POST['user'], - $len, $quorum_str, $uid); + $len, strval($quorum), $uid); print "

" . __("New proposal submitted.") . "

\n"; } else {