Closed Bug 926142 Opened 9 years ago Closed 9 years ago

Can't call method "is_active" on unblessed reference when loading certain bugs that have flags set but are no longer visible

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

References

Details

One of several errormill errors:

https://errormill.mozilla.org/bugzilla/bmo/group/119422/

Can't call method "is_active" on unblessed reference at /loader/0x7f8eb620b018/Bugzilla/Extension/TrackingFlags/Flag.pm line 199.

Some bugs have values other than '---' in the old tracking flag columns and were migrated over to the tracking_flags_bugs table. The flags the values are associated with are no longer visible on the bug due to being moved to a different product, etc. TrackingFlags::Flag::preload_all_the_things attempts to load the bug value even though a valid tracking flag object is not present. Thus the is_active error.

I have a patch for this I will commit once I get a bug ID.

dkl
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2
modified extensions/TrackingFlags/lib/Flag.pm
Committed revision 9058.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 926183
Component: Extensions: TrackingFlags → Extensions
You need to log in before you can comment on or make changes to this bug.