summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/lib/MonkeyPatches.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-07-19 04:42:56 +0200
committerGitHub <noreply@github.com>2018-07-19 04:42:56 +0200
commit351b399991094e57e890a9291484c4ab69ca628b (patch)
tree29b5eb8c82ac00978ab37345bb3c11ad84eb48e1 /extensions/BugModal/lib/MonkeyPatches.pm
parent40a8efb9cf0cf27335a34097653f82f943caf5a2 (diff)
downloadbugzilla-351b399991094e57e890a9291484c4ab69ca628b.tar.gz
bugzilla-351b399991094e57e890a9291484c4ab69ca628b.tar.xz
Bug 1476288 - Replace moz_nick with (new, revised) nick and also attempt to disallow duplicate nicks
Diffstat (limited to 'extensions/BugModal/lib/MonkeyPatches.pm')
-rw-r--r--extensions/BugModal/lib/MonkeyPatches.pm25
1 files changed, 0 insertions, 25 deletions
diff --git a/extensions/BugModal/lib/MonkeyPatches.pm b/extensions/BugModal/lib/MonkeyPatches.pm
index 88fce11af..54bd6e560 100644
--- a/extensions/BugModal/lib/MonkeyPatches.pm
+++ b/extensions/BugModal/lib/MonkeyPatches.pm
@@ -40,31 +40,6 @@ sub active_attachments {
1;
-package Bugzilla::User;
-
-use 5.10.1;
-use strict;
-use warnings;
-
-sub moz_nick {
- my ($self) = @_;
- if (!exists $self->{moz_nick}) {
- if ($self->name =~ /:?:(\S+?)\b/) {
- $self->{moz_nick} = $1;
- }
- elsif ($self->name) {
- $self->{moz_nick} = $self->name;
- }
- else {
- $self->login =~ /^([^\@]+)\@/;
- $self->{moz_nick} = $1;
- }
- }
- return $self->{moz_nick};
-}
-
-1;
-
package Bugzilla::Attachment;
use 5.10.1;