aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/Voting/Extension.pm2
-rw-r--r--extensions/Voting/disabled0
-rw-r--r--extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl1
3 files changed, 2 insertions, 1 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm
index 6857135eb..47105bf98 100644
--- a/extensions/Voting/Extension.pm
+++ b/extensions/Voting/Extension.pm
@@ -326,7 +326,7 @@ sub _check_votestoconfirm {
sub _check_votes {
my ($default, $invocant, $votes, $field) = @_;
- detaint_natural($votes);
+ detaint_natural($votes) if defined $votes;
# On product creation, if the number of votes is not a valid integer,
# we silently fall back to the given default value.
# If the product already exists and the change is illegal, we complain.
diff --git a/extensions/Voting/disabled b/extensions/Voting/disabled
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/extensions/Voting/disabled
diff --git a/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl b/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
index 719cbe4c1..50e915941 100644
--- a/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
+++ b/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
@@ -22,3 +22,4 @@
[% title = "$terms.Bug Cannot Be Confirmed" %]
There is no valid transition from
[%+ display_value("bug_status", "UNCONFIRMED") FILTER html %] to an open state
+[% END %]