Closed Bug 282621 Opened 20 years ago Closed 20 years ago

error message in the apache log file when creating a new attachment

Categories

(Bugzilla :: Attachments & Requests, defect)

2.19.2
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file)

When creating a new attachment, the following error message appears in the
apache log file:

attachment.cgi: Argument "" isn't numeric in numeric gt (>) at (eval 27) line 244.

This is because $vars->{'flag_types'}->{'flags'} is undefined (it is only
defined when editing existing attachments) and the following test in
flag/list.html.tmpl generates this error:

[% NEXT UNLESS type.flags.size > 0 && type.is_multiplicable && type.is_active %]

type.flags.size is undefined ("").
Attached patch simple patch, v1Splinter Review
Test first if $vars->{'flag_types'}->{'flags'} exists.
Attachment #174609 - Flags: review?(myk)
Comment on attachment 174609 [details] [diff] [review]
simple patch, v1

r=myk
Attachment #174609 - Flags: review?(myk) → review+
Flags: approval+
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
Checking in template/en/default/flag/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/flag/list.html.tmpl,v  <-
-  list.html.tmpl
new revision: 1.17; previous revision: 1.16
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: