summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags/lib
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-11-14 05:24:51 +0100
committerByron Jones <bjones@mozilla.com>2013-11-14 05:24:51 +0100
commitb257fb97f3c26be2efcb673a6c1c3de3a45b2135 (patch)
tree6ea7bead88d1c01b7b01b9d233249d397eea6ad1 /extensions/TrackingFlags/lib
parentd52ce71f7101596e05771f02f5cca7ce5df059d0 (diff)
downloadbugzilla-b257fb97f3c26be2efcb673a6c1c3de3a45b2135.tar.gz
bugzilla-b257fb97f3c26be2efcb673a6c1c3de3a45b2135.tar.xz
Bug 931171: add bulk_flag_clear.pl script
Diffstat (limited to 'extensions/TrackingFlags/lib')
-rw-r--r--extensions/TrackingFlags/lib/Flag.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/TrackingFlags/lib/Flag.pm b/extensions/TrackingFlags/lib/Flag.pm
index bc422243e..3ae7a937e 100644
--- a/extensions/TrackingFlags/lib/Flag.pm
+++ b/extensions/TrackingFlags/lib/Flag.pm
@@ -389,7 +389,9 @@ sub can_set_value {
last;
}
}
- return $new_value_obj && $user->in_group($new_value_obj->setter_group->name)
+ return $new_value_obj
+ && $new_value_obj->setter_group
+ && $user->in_group($new_value_obj->setter_group->name)
? 1
: 0;
}