Can't call bug.defined in templates

RESOLVED FIXED in Bugzilla 4.2

Status

()

RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: guy.pyrzak, Assigned: mkanat)

Tracking

unspecified
Bugzilla 4.2
Dependency tree / graph

Details

(Whiteboard: [fixed by blocker])

(Reporter)

Description

8 years ago
when calling bug.defined from template/en/default/bug/show-header.html.tmpl the tool results in the following error:

undef error - invalid bug attribute defined at Bugzilla/Bug.pm line 4055
	Bugzilla::Bug::AUTOLOAD('Bugzilla::Bug=HASH(0x1020d0678)') called at template/en/default/bug/show-header.html.tmpl line 49
	eval {...} called at template/en/default/bug/show-header.html.tmpl line 49
	eval {...} called at template/en/default/bug/show-header.html.tmpl line 12
	Template::Provider::__ANON__('Bugzilla::Template::Context=HASH(0x101e957d8)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Document.pm line 151
	eval {...} called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Document.pm line 149
	Template::Document::process('Template::Document=HASH(0x10214fdb0)', 'Bugzilla::Template::Context=HASH(0x101e957d8)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Context.pm line 351
	eval {...} called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Context.pm line 321
	Template::Context::process('Bugzilla::Template::Context=HASH(0x101e957d8)', 'bug/show-header.html.tmpl') called at Bugzilla/Template/Context.pm line 45
	Bugzilla::Template::Context::process('Bugzilla::Template::Context=HASH(0x101e957d8)', 'bug/show-header.html.tmpl') called at template/en/default/bug/show.html.tmpl line 30
	eval {...} called at template/en/default/bug/show.html.tmpl line 18
	Template::Provider::__ANON__('Bugzilla::Template::Context=HASH(0x101e957d8)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Document.pm line 151
	eval {...} called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Document.pm line 149
	Template::Document::process('Template::Document=HASH(0x10202f858)', 'Bugzilla::Template::Context=HASH(0x101e957d8)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Context.pm line 351
	eval {...} called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Context.pm line 321
	Template::Context::process('Bugzilla::Template::Context=HASH(0x101e957d8)', 'Template::Document=HASH(0x10202f858)') called at Bugzilla/Template/Context.pm line 45
	Bugzilla::Template::Context::process('Bugzilla::Template::Context=HASH(0x101e957d8)', 'Template::Document=HASH(0x10202f858)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Service.pm line 94
	eval {...} called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template/Service.pm line 91
	Template::Service::process('Template::Service=HASH(0x100fb50c0)', 'bug/show.html.tmpl', 'HASH(0x100804ed0)') called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Template.pm line 66
	Template::process('Bugzilla::Template=HASH(0x100816860)', 'bug/show.html.tmpl', 'HASH(0x100804ed0)') called at Bugzilla/Template.pm line 589
	Bugzilla::Template::process('Bugzilla::Template=HASH(0x100816860)', 'bug/show.html.tmpl', 'HASH(0x100804ed0)') called at /Users/pyrzak/Sites/karma_2/trunk/show_bug.cgi line 128
(Reporter)

Updated

8 years ago
Blocks: 577720
(Assignee)

Updated

8 years ago
Depends on: 600123
(Assignee)

Updated

8 years ago
Assignee: ui → mkanat
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by blocker]
Target Milestone: --- → Bugzilla 4.2
You need to log in before you can comment on or make changes to this bug.