summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-05-22 17:20:23 +0200
committerGitHub <noreply@github.com>2018-05-22 17:20:23 +0200
commit50a43f2b2147cc7fba37c45860afd27a8f256b17 (patch)
treecc0c725f3dff68c15bdc87b9707acb23f6fcc216 /extensions/PhabBugz
parente3961fddcc9520e6b77a1de02ca8e1828e6925a9 (diff)
downloadbugzilla-50a43f2b2147cc7fba37c45860afd27a8f256b17.tar.gz
bugzilla-50a43f2b2147cc7fba37c45860afd27a8f256b17.tar.xz
Bug 1462686 - Current phabbugz in bmo master still refers to get_phab_bmo_ids() which is no longer part of the code
Diffstat (limited to 'extensions/PhabBugz')
-rw-r--r--extensions/PhabBugz/lib/Feed.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm
index 8f02d8c3f..96c0830a2 100644
--- a/extensions/PhabBugz/lib/Feed.pm
+++ b/extensions/PhabBugz/lib/Feed.pm
@@ -236,9 +236,13 @@ sub group_query {
my $sync_groups = Bugzilla::Group->match( { isactive => 1, isbuggroup => 1 } );
# Load phab-bot Phabricator user to add as a member of each project group later
- my $phab_ids = get_phab_bmo_ids( { ids => [ Bugzilla->user->id ] } );
- my $phab_user = Bugzilla::User->new( { id => $phab_ids->[0]->{id}, cache => 1 } );
- $phab_user->{phab_phid} = $phab_ids->[0]->{phid};
+ my $phab_bmo_user = Bugzilla::User->new( { name => PHAB_AUTOMATION_USER, cache => 1 } );
+ my $phab_user =
+ Bugzilla::Extension::PhabBugz::User->new_from_query(
+ {
+ ids => [ $phab_bmo_user->id ]
+ }
+ );
# secure-revision project that will be used for bmo group projects
my $secure_revision =