summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-01-02 19:44:44 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-01-02 19:44:44 +0100
commit4bd20b178878cf9f204c94921ecb45dc8cd9af3b (patch)
tree72b79a546dab67c3d051ac9e7b63f7d36674dd13 /Bugzilla
parent725f2fb7958c6a251efdb056d49063fc4f8da91a (diff)
downloadbugzilla-4bd20b178878cf9f204c94921ecb45dc8cd9af3b.tar.gz
bugzilla-4bd20b178878cf9f204c94921ecb45dc8cd9af3b.tar.xz
Fix bustage due to bug 801664
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 6680ede55..7c7e0fb37 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1990,11 +1990,11 @@ sub _check_field_is_mandatory {
sub _check_date_field {
my ($invocant, $date) = @_;
- return _check_datetime_field($invocant, $date, 1);
+ return $invocant->_check_datetime_field($date, undef, {date_only => 1});
}
sub _check_datetime_field {
- my ($invocant, $date_time, $date_only) = @_;
+ my ($invocant, $date_time, $field, $params) = @_;
# Empty datetimes are empty strings or strings only containing
# 0's, whitespace, and punctuation.
@@ -2008,7 +2008,7 @@ sub _check_datetime_field {
ThrowUserError('illegal_date', { date => $date,
format => 'YYYY-MM-DD' });
}
- if ($time && $date_only) {
+ if ($time && $params->{date_only}) {
ThrowUserError('illegal_date', { date => $date_time,
format => 'YYYY-MM-DD' });
}