Closed Bug 950491 Opened 11 years ago Closed 11 years ago

When viewing a dependency graph, an "uninitialized value" warning is thrown

Categories

(Bugzilla :: Dependency Views, defect)

4.5.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

(Keywords: regression)

Attachments

(1 file)

In Bugzilla 4.5.1, I get: showdependencygraph.cgi: Use of uninitialized value $lang in hash element at Bugzilla/Util.pm line 754. This warning comes from template_var(): return $cache->{$lang}->{$name} if defined $cache->{$lang}; I suspect bug 797636 is responsible for this warning.
Actually, this warning is thrown since bug 853638 landed. showdependencygraph.cgi is the single CGI script which calls display_value() itself, and so $template->process(), which sets $lang for us, has not been called yet.
Depends on: 853638
Attached patch patch, v1Splinter Review
This replicates the old code, i.e. if no language is defined, it falls back to ''. This way, there is no need to wait for $template->process() from being called.
Attachment #8347776 - Flags: review?(bugzilla.1.wurblzap)
Attachment #8347776 - Flags: review?(simon)
Attachment #8347776 - Flags: review?(simon)
Attachment #8347776 - Flags: review?(bugzilla.1.wurblzap)
Attachment #8347776 - Flags: review+
Flags: approval+
Thanks for taking this, Simon. It would have taken some more days until I could've gotten around to it.
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Util.pm Committed revision 8835.
Status: ASSIGNED → RESOLVED
Closed: 11 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: