javascript error on pages that show the privacy banner

Bug #1057248 reported by Ian Booth
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Ian Booth

Bug Description

Goto a proprietary bug page and get this javascript error in the console:

TypeError: info_type is undefined
Y.on(info_type.EV_ISPUBLIC, that._make_public, that);

The affected code lives in lp/app/javascript/banners/privacy.js

The above js file also contains another error, a call to an unexported function:

banner_text = info_type.get_banner_text(ev.value);

This bit of code is also untested as far as I can tell.

Related branches

Revision history for this message
Ian Booth (wallyworld) wrote :

There's also a bunch of other typos to fix:

thow('A custom privacy banner must have a text attribute');

Plus some uninitialised variables.

description: updated
Curtis Hovey (sinzui)
summary: - javascript error on bugtask page
+ javascript error on pages that show the privacy banner
Ian Booth (wallyworld)
tags: added: qa-ok
Changed in launchpad:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.