Closed Bug 624414 Opened 15 years ago Closed 15 years ago

The "Possible duplicates" table in enter_bug.cgi no longer works (BUGZILLA.value_descs is undefined)

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: LpSolit, Assigned: mkanat)

References

Details

(Keywords: regression)

Attachments

(1 file)

As bug 595410 moved value_descs inside [% IF in_template_var %] [% END %], the display_value() function in js/global.js can no longer access it, meaning that BUGZILLA.value_descs set in global/header.html.tmpl is now undefined, and the "Possible duplicates" table in enter_bug.cgi no longer works. Error : BUGZILLA.value_descs[field] is undefined Source File : https://localhost/bugzilla/js/global.js Line : 126
Attached patch v1Splinter Review
This fixes the problem, which was (a) that value-descs.js.tmpl couldn't get at the "value_descs" hash anymore and (b) my patch that put value_descs into the "in_template_var" patch had a bug that prevented value_descs from actually getting into "vars".
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #516199 - Flags: review?(glob)
BTW, this is a "blocker" for 4.1.1.
Attachment #516199 - Flags: review?(glob) → review+
Flags: approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified template/en/default/global/field-descs.none.tmpl modified template/en/default/global/header.html.tmpl modified template/en/default/global/value-descs.js.tmpl added template/en/default/global/value-descs.none.tmpl Committed revision 7733.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Note that there is no need to CC me on a bug I filed. I'm already watching it. ;)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: